Welcome to WebmasterWorld Guest from 220.127.116.11
Nice forum ; I hope i will be helped :)
First, sorry for my broken english (french...)
Two : i need some advice (i'm a newbie)
I have a site managed by a CMS (french cms : artiphp) who give me huge and not friendly url, so i'm working with .htaccess and mod_rewrite to get better url. Ok?
For easier testing i want to use the htaccess on my own pc, in the local test version of my site. I want to test my regex and protect my distant site.
My OS is W2k, the server is the latest apache (mod_rewrite on) with recent php. So, I have a working .htaccess (successful on my distant site) but not working in local : a simple redirection doesn't work (but the same redirection works fine on my distant site). The local htaccess is in the root of my site : in a folder named 'mysite', and Apache knows that here is the root of my site.
Any suggestion? Why this htaccess works fine on my distant site and failed at home?
I hope you understand me, lol :)
Have a nice day,
Welcome to WebmasterWorld [webmasterworld.com]!
mod_rewrite requires some additional settings in order to work.
You must have AllowOverride FileInfo Limit or AllowOverride All in the <directory> container for your local site in httpd.conf. Also, you may want to have Options FollowSymLinks in the <directory> container.
Alternately, you must have AllowOverride FileInfo Limit Options or AllowOverride All in httpd.conf and Options +FollowSymLinks in .htaccess, before the RewriteEngine on directive.
AllowOverride FileInfo grants permission for .htaccess to use mod_rewrite to change pathnames.
AllowOverride Limit grants permission to .htaccess to use mod_access to control file access.
AllowOverride Options grants permission to use Options directives in .htaccess.
Options FollowSymLinks is required to use mod_rewrite.
See the Apache documentation [httpd.apache.org] for more information.