Forum Moderators: phranque

Message Too Old, No Replies

rewrite not working

         

jerak

2:50 am on Aug 8, 2004 (gmt 0)

10+ Year Member



okay i have a tough one here

i have this in my httpd.conf file:

RewriteEngine On
RewriteRule /~(.*) /index.php?t=$1

but when i go to [localhost...] it doesnt work!

jdMorgan

4:17 am on Aug 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



jerak,

Welcome to WebmasterWorld [webmasterworld.com]!

Can't give a good answer without more details...

What does your server error log say?
Do you have any other rewriterules in httpd.conf that *do* work?
Have you enabled Options FollowSymLinks or Options SymLinksIfOwnerMatch as required by mod_rewrite?

Jim

jerak

5:31 am on Aug 8, 2004 (gmt 0)

10+ Year Member



there is nothing is my server error log, i have "Options All" set in the directory, and i have no other rewriterules

jerak

5:35 am on Aug 8, 2004 (gmt 0)

10+ Year Member



wait, sorry, i missed this the first time... it says:

[Sat Aug 07 23:35:07 2004] [error] [client 64.110.207.102] File does not exist: c:/program files/apache group/apache/htdocs/~test

so obviously the rewrite isnt working at all...

jdMorgan

6:47 pm on Aug 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Check to see if you have the lines
LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c
in your httpd.conf -- they may be commented out.

Jim

jerak

5:15 am on Aug 11, 2004 (gmt 0)

10+ Year Member



they are uncommented :(