introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.
-->

[solved] URL Rewriting issue



Posted by: Jlive140
April 01, 2010 05:03PM
Hello,

beginner level... I try to configure locally the URL rewriting using easyphp 5.3.2

I have read many forums and it seems that in the file httpd.conf the lines :

#LoadModule rewrite_module modules/mod_rewrite.so
#AddModule mod_rewrite.c

must be active (delete #)

The problem is, I guess, I don't have the second line (#AddModule mod_rewrite.c) in the httpd.conf. When I try to add this line, I have an error from Apache (maybe I don't put it at the right place ?)

I have done a test with a file trouve.html and with file .htaccess under directory www from easyphp. .ht access has the following content :

Order deny,allow
allow from 127.0.0.1
deny from all

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^nexistepas.html$ trouve.html [L]

I have Windows XP

Thank you very much for your help



Edited 1 time(s). Last edit at 04/02/2010 09:29AM by Jlive140.
April 01, 2010 06:30PM
Dear Jlive140,


You seem to have done some good homework!

May I point you to the following apache configuration:

AllowOverride

This statement controls the way that the .htaccess file(s)
are allowed (-or not-) to modify the behaviour of apache.

By default EasyPHP says: AllowOverride None

Greetings,
Augustin.
Posted by: Jlive140
April 02, 2010 09:22AM
Dear Augustin,

you're right, now working, I just modified the httpd.conf as you mentioned.

Thank you very much for your great help !

Jlive140