1 (edited by creaturecorp 2005-03-04 22:05)

Topic: Mod rewrite help

I'm having a problem using mod_rewrite. I'm trying to rewrite my main pages into fake directories.

RewriteEngine On
RewriteRule ^([0-9]+)/?$ index.php?page=$1 [L]

That's in the root dir in a .htaccess file. I have mod_rewrite installed and yet this fails to bring up http://creaturecorp.com/index.php?page=contact when I type in http://creaturecorp.com/contact

What's wrong?

Regards,

Creaturecorp

I don't HAVE a signature, ok?

Re: Mod rewrite help

i might be wrong but, [0-9] means only numbers 0 to 9 does it not?

Re: Mod rewrite help

I have no idea. big_smile

I don't HAVE a signature, ok?

Re: Mod rewrite help

try

RewriteRule ^(.*)/?$ index.php?page=$1 [L,NC]

at least you'll know if it works at all

Re: Mod rewrite help

this is retarded... it's still not working. It's the servers fault, I think.

I don't HAVE a signature, ok?

Re: Mod rewrite help

I fixed it... I have no idea how. Internet stuff is funny that way.

I don't HAVE a signature, ok?