asmitaisit Posted March 20, 2008 Share Posted March 20, 2008 Hi!! http://www.eyellowsearch.com/index.php I have created a classifieds site. It follows a category,sub category structure. I need to rewrite url in form of a directory structuren through htaccess. i.e. http://www.eyellowsearch.com/real-estate/land/3.html how do i go about it? m clueless. I need to make the site search engine friendly. please suggest a step by step way. Thanks, Link to comment https://forums.phpfreaks.com/topic/97039-url-rewriting/ Share on other sites More sharing options...
asmitaisit Posted March 20, 2008 Author Share Posted March 20, 2008 something of this sort for categories anmd sub categories http://www.pakadtrader.com/Category/Business-Opportunities/Marketing--Sales/ Link to comment https://forums.phpfreaks.com/topic/97039-url-rewriting/#findComment-496589 Share on other sites More sharing options...
korbinus Posted March 22, 2008 Share Posted March 22, 2008 Well, if you have your PHP script that looks like this: index.php?cat1=Business-Opportunities&subcat1=Marketing-Sales you will change your .htaccess or httpd.conf as such: RewriteEngine On RewriteRule ^Category/(.*)/(.*)/$ /index.php?cat1=$1&subcat1=$2 [L] I hope it helps Link to comment https://forums.phpfreaks.com/topic/97039-url-rewriting/#findComment-498373 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.