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, Quote Link to comment 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/ Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.