gop373
11-22-05, 09:48 PM
I have question about install mod_rewrite. I used php and Apache and run locally on window xp. My question is that I install Apache_2.0.55-win32-x86-no_ssl I read from most tutorial it said
Uncomment LoadModule rewrite_module modules/mod_rewrite.so and AddModule mod_rewrite.c. The problem is when I open httpd.cofg, I don't have AddModule mod_rewrite.c. so what should I do....I tried to add AddModule mod_rewrite.c. But that cause server can not run.
What should I do any comment.
2) My second question is ......I created the .htaccess file in this path C:\Program Files\Apache Group\Apache2\htdocs\.htaccess is it the right place ??? My actual project is in this path C:\Test\Asm\mark.php.
in .htaccess i wrote
RewriteEngine on
RewriteRule ^Asm/mark/([0-9]+)$ /Asm/mark.php?GroupID=$1 [L]
Then I restarted Apache.......But the problem is when I open file php.....it still shows http://localhost/Asm/mark.php?ID=1
Do I miss anything.....what should I do any comment !!! :( :confused:
Uncomment LoadModule rewrite_module modules/mod_rewrite.so and AddModule mod_rewrite.c. The problem is when I open httpd.cofg, I don't have AddModule mod_rewrite.c. so what should I do....I tried to add AddModule mod_rewrite.c. But that cause server can not run.
What should I do any comment.
2) My second question is ......I created the .htaccess file in this path C:\Program Files\Apache Group\Apache2\htdocs\.htaccess is it the right place ??? My actual project is in this path C:\Test\Asm\mark.php.
in .htaccess i wrote
RewriteEngine on
RewriteRule ^Asm/mark/([0-9]+)$ /Asm/mark.php?GroupID=$1 [L]
Then I restarted Apache.......But the problem is when I open file php.....it still shows http://localhost/Asm/mark.php?ID=1
Do I miss anything.....what should I do any comment !!! :( :confused: