Jump to content

mod_rewrite and .htaccess


kevinak

Recommended Posts

I seem to me having some trouble with this crazy amazing thing.

 

I have the file in my root directory name .htaccess

 

in that file the only code I have is

RewriteEngine ON
RewriteBase /
RewriteRule ^home/([^/\.]+)/?$ home.php?id=$1

 

Now shouldn't that reroute my page www.example.net/home/1

to www.example.net/home.php?id=1

?

Is there a tag I need to place in the .htaccess file?

Link to comment
https://forums.phpfreaks.com/topic/123497-mod_rewrite-and-htaccess/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.