PDA

View Full Version : Can not set mod_rewrite to work


Anonymous
06-13-2005, 07:13 PM
Hello
I enabled the rewrite feature and I get 404 every time. I tested it under XP using apache and php. Rewriet module is loaded.
As I thought it may be a problem in my configuration I tested it on other server wher rewrite does work for sure and still no success. :(
Do I have to change something more than the setting in the admin panel?

Anonymous
06-13-2005, 11:57 PM
Content visible to registered users only.

Hello everybody. I found the simple answer hard enough :)
So in order to save the rest of you that headache here is the solution.
As I had put the directory in a subfolder "links" the .htaccess file could not find the index.php file. So to correct it I modified it as follows below
RewriteRule .* /links/index.php [QSA,L]
I'm not sure what was the problem on my testing server as the script was in the root there but I have ketp the server root for apache in "Program files...." as it isntalled by default. After moving it to c:\apacheroot and setting the configuration file it started working fine. Strange indeed.