Forum Moderators: phranque
Now using .htaccess I want to access a0001.php file by using the url
1)http://www.DomainName.com/sell_leads/ (to display all listings of all categories)
2)http://www.DomainName.com/sell_leads/agriculture/ (to display all listings of agriculture)
3)http://www.DomainName.com/sell_leads/agriculture/beans/ (to display all listings of beans)
And currently I have following code (3 lines for above 3)
RewriteRule ^ sell_seads /$ a0001.php [NC]
RewriteRule ^ sell_seads /(.*)/(.*)/$ a0001.php?cid=$1 [NC]
RewriteRule ^sell_seads/(.*)/(.*)/(.*)/$ a0001.php?cid=$1 [NC]
(Here first (.*) is giving me the category ID which I required for further work)
Please let me know is it appropriate to define 3 rules (3 lines) for 3 types of work with a single file, as I have now 15 such files and following the above I have to write there 15*3=45 rules / lines..?
Thanks,
Mubashar
RewriteRule ^sell_seads/$ a0001.php [L]
RewriteRule ^sell_seads/([^/]+)/([^/]+)/$ a0001.php?cid=$1 [L]
RewriteRule ^sell_seads/([^/]+)/([^/]+)/([^/]+)/$ a0001.php?cid=$1 [L]
Jim