Questions tagged as 'htaccess'

1
answer

Nginx with PATH_INFO and url rewritten (friendly)

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-...
asked by 04.05.2015 / 01:20
2
answers

Friendly URL does not retrieve variable

I'm trying to make my site's URLs friendly. Friendly URL http://localhost/mg/artista/10 .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d Rewrite...
asked by 31.01.2015 / 02:26
1
answer

How to redirect to a folder and HTTPS at the same time?

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...
asked by 23.01.2017 / 13:29
1
answer

How to block internet explorer access?

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...
asked by 28.07.2015 / 14:08
1
answer

Configure N levels in htaccess [duplicate]

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=...
asked by 04.11.2014 / 12:51
4
answers

How to install WordPress Multisite?

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...
asked by 19.02.2015 / 14:42
1
answer

How to release access to a specific FOLDER or FILE using .htaccess?

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...
asked by 06.04.2015 / 17:38
3
answers

Problem with search and friendly url

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...
asked by 21.03.2015 / 23:39
3
answers

Force url redirection with htaccess with password

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...
asked by 06.07.2016 / 13:54
1
answer

Alternative to index.php using .htaccess

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...
asked by 17.11.2014 / 11:14