I created a .htaccess in the /var/www/project/ folder:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(statics/([a-zA-Z0-...
I have a site link which is a CNAME from link , where the hosted site is hosted. But I needed to be redirected to the meusite folder of my amazon machine, ie link , but keep it only visible link .
I got this with this answer: l...
How can I block my site from being accessed by the iternet explorer via .htaccess? I already tried codes like:
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} "MSIE [6-8]" [NC]
RewriteRule ^(.*)$ http://mysite.com/ie [R=301,L]
<IfModule mo...
On the site we have the product area where there may be N levels and sub-levels of categories.
Currently htaccess is configured to accept 2 levels:
RewriteRule ^([a-zA-Z_-]+)/produtos/([^/]*)/([^/]*)/([^/]*) index.php?area=produtos&lang=...
I'm using the WordPress multi-site option, but it's not working as expected.
I have already enabled and created the subdomains, but it returns:
Not Found
The requested URL /index.php was not found on this server.
Additiona...
I have a .htaccess in my development environment.
Now I need to release a directory from the site, actually a specific PHP file.
I am using this code in .htaccess, I am releasing several extensions, if I release the PHP extension, it acces...
Good evening,
I have a search that is working fine, I'm only now having a problem when someone writes a word with an accent or two words separated by space, I break the url.
Would you like to know how I can resolve this situation?
Code...
I need to test a site that I'm creating and to do this I'll let some people access it, it happens that I only want to give access to a specific url that opens the site login.
EX: link
Any other form should be blocked.
I need help to c...
How do I .htaccess put another file, other than index.php , as primary, that is, put a file named home.php and make it work as if it were a index.php .
I'd also like to know some defensive configurations that it allo...