1
可能重複:
Rewrite URL in PHP with mod_rewrite的.htaccess mod_rewrite的與PHP的
我發展,爲本地城市及其開發利用PHP和MySQL工作門戶。我已經將各種功能主義者納入到按城市搜索和按經驗等級搜索和按行業類型搜索以及按日期搜索等方面。
我有一個這樣的URL:
http://example.com/job_details.php?id=hj11&location=Mumbai&job=System+Administrator&company=Exa+India+Pvt+Ltd
我試了很多方法來達到最終的結果我的預期。但它不是發生了我.. :-(
我正在尋找這樣的事情,
http://example.com/jobs-in-mumbai/Exa-India-Pvt-Ltd/
也許這可能有幫助嗎? - http://net.tutsplus.com/articles/news/htaccess-files-for-the-rest-of-us/?search_index=4 – ilight
您的意思是您想要將第一個示例中給出的URL重寫爲「美女」的URL在第二個例子中使用mod_rewrite? – matthias
[用mod \ _rewrite重寫URL中的URL]的可能重複(http://stackoverflow.com/questions/2460851/rewrite-url-in-php-with-mod-rewrite); http://stackoverflow.com/questions/2188225/htaccess-mod-rewrite和許多其他的你可以找到在右邊的相關列以及http://stackoverflow.com/search?q=%5Bphp% 5D +的.htaccess的mod_rewrite + + +漂亮的URL + HOWTO – hakre