Jump to content

Mod_rewrite


oshopindia

Recommended Posts

Your post is not for here, there is an apache section in the forum. 

So, don't provide to users URL's like - hostName/productdetail.php?prodid=23423. 

The URL should be as expected - hostName/productdetail/3649

Then go to web root and create the apache rewriting rule.

RewriteEngine On
RewriteBase / # web root
RewriteRule ^/?([0-9]+)$ productdetail.php?prodid=$1 [L]
Link to comment
https://forums.phpfreaks.com/topic/280891-mod_rewrite/#findComment-1443709
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.