Jump to content

Rewrite Rule


techiefreak05

Recommended Posts

Hi, how would I create a rule that would make www.site.com/user  redirect to: www.site.com/folder/index.php?username=user

also. I cant do anything dealing with RewriteRule on my localhost server ... why not? Its just a simple server I et up to test and build my website until i get it up.
Link to comment
https://forums.phpfreaks.com/topic/31311-rewrite-rule/
Share on other sites

What server are you using on localhost? If its Apache then you wil need to enable the mod_rewrite extension in the httpd.conf - you do that by removing the # from infront of the following line:
[b]LoadModule rewrite_module modules/mod_rewrite.so[/b]

Now save the httpd.conf and restart the Apache server.
Link to comment
https://forums.phpfreaks.com/topic/31311-rewrite-rule/#findComment-145292
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.