Jump to content

Simple Question...


stig1

Recommended Posts

You will not be able to directly do it with IDs like that.  You will have to rewrite something like domainname.com/tape.html to domainname.com/page.php?catalog=tape.  Mod_rewrite cannot (well, should not) map names to IDs.

 

 

 

Anyway, you could do this your self if you googled for a second, but:

 

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]+)\.html$ /browse.php?catalog_name=$1

Link to comment
https://forums.phpfreaks.com/topic/148436-simple-question/#findComment-779310
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.