I'm trying to redirec开发者_Python百科t all to http://site.com/folder1/folder2/file.php
works perfectly in Windows but not Linux
.htaccess is inside folder1
RewriteEngine On
RewriteRule ^(.*)$ folder2/file.php
If I try to access http://site.com/folder1 without last "/" I get "Bad Request" error on Linux
I do not want to change the URL in the address bar
any ideas?
If this is for an Apache httpd.conf, try using something like:
DocumentRoot "location folder1/folder1"
精彩评论