Skip to main content

Questions tagged [.htaccess]

Directory-level configuration file found mostly on Apache web servers

0 votes
0 answers
51 views

I am trying to set up an access policy in the .htaccess file, note that I am aware of other protection layers like server config in VirtualHosts, file permissions etc. - this question is not about ...
User5333545592054866's user avatar
0 votes
1 answer
129 views

I am new to wordpress and cPanel. I created a wordpress site inside a sub folder of public_html folder. Here the structure: root |- public_html |- mcg-main But I want that mag-main does not ...
Simone's user avatar
  • 103
1 vote
1 answer
511 views

I have to allow CORS on an apache server. For this, I have set the according Access-Control-Allow-Origin etc. headers in the http main config file, so far so good. For the CORS request to work as ...
DevelJoe's user avatar
  • 259
3 votes
1 answer
79 views

I am debugging a persistent and very specific HTTP 500 error on a LiteSpeed server running PrestaShop 1.7.8.9. Environment: Web Server: LiteSpeed PHP: 7.4 (running as PHP-FPM) Application: ...
sergio's user avatar
  • 31
8 votes
3 answers
1k views

My intention is to serve a website from a subfolder without changing the document root to point at that folder (since I cannot because it is on a shared hosting). For this purpose I added this to my ....
Bence Szalai's user avatar
0 votes
0 answers
105 views

I'm using NGINX to run a wordpress membership site, where I need to restrict access to specific files and memberships, but in order for this to work I must add the following rules to .htaccess: ...
olddog's user avatar
  • 1
0 votes
1 answer
67 views

I have a .htaccess which looks like this: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=FOO:bar] </IfModule> This is slightly simplified, but the original contains no ...
QF0's user avatar
  • 225
0 votes
1 answer
148 views

Google is crawling somewhere my URLs with some non-existing garbage URL parameters at the end of canonical URLs. So, how to leave only 1st URL parameter and remove the rest parameters if there are any ...
cmpt's user avatar
  • 87
0 votes
0 answers
59 views

I have some .htaccess files to limit some resources just from some ip. I would like to keep the ip list in a separate file and avoid to change all .htaccess files when I need to add some ip. Is it ...
Tobia's user avatar
  • 1,594
1 vote
1 answer
230 views

I want to forward URLs (with parameters) from my old domain to URLs (without parameters) on my new domain. The URLs look like this: old-domain.com/deceased-persons-2021/?id=1500_betty-white (id=1500_ ...
Andreas Böttcher's user avatar
1 vote
3 answers
444 views

sorry; have not done this since 2016, and kinda stumped. Need help with likely simple mod_rewrite rule for htaccess file to redirect old files which no longer have a trailing _number on the end. Need ...
Christopher Simmons's user avatar
1 vote
1 answer
258 views

How do I write a RewriteRule that will access files outside of the document root? We are running multiple sites on multiple subdomains using a shared hosting service. There are a number of core files ...
user16264123's user avatar
0 votes
0 answers
102 views

I had someone gain access to the admin side of my OSCommerce installation and upload a Google verification file. That has been resolved but now unable to access the admin page/directory. I'm getting a ...
OverClocked's user avatar
1 vote
1 answer
332 views

I've been trying to block public access to a parent directory, but not the sub-directories inside it. Linux file permissions, don't seem to allow this, so I've been trying to use .htaccess to do so ...
Sam Goodfield's user avatar
2 votes
1 answer
429 views

Basic authentication forgets the user once the browser is closed and browsers ignore its custom titles. In my understanding Digest access authentication is not different in those aspects. So is there ...
LWC's user avatar
  • 177

15 30 50 per page
1
2 3 4 5
191