Jump to content

Static URL's


dave_cdv

Recommended Posts

You would firstly need to modify your code within search.php so that your queries work with names, not id's. eg, get this url working....

 

example.co.uk/search?region=marbella&type=villas

 

From there, you put a simple rewrite rule in place within your .htaccess file.

 

RewriteRule ^/([^/]+)/([^/]+) /search?$1=$2

Link to comment
https://forums.phpfreaks.com/topic/216921-static-urls/#findComment-1126926
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.