View Single Post
Old 02-01-2013, 06:09 PM   PM User | #1
mycarhelpline
New to the CF scene

 
Join Date: Sep 2012
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
mycarhelpline is an unknown quantity at this point
duplicate url issue, pl review my htaccess code

i have many urls showing with blank item id of couple of components. Sample been 'news' and 'prices'

News

Quote:
?page=16&&option=com_news&view=list&Itemid=
index.php?option=com_news&view=detail&n_id=366&Itemid=
Prices

Quote:
?page=10&&option=com_prices&view=list&Itemid=
Have tested using

Quote:
RewriteCond %{QUERY_STRING} ^(.*)&Itemid=(&|$)(.*)$
RewriteRule ^(.*)$ /$1?%1&Itemid=10&%3 [L,R=301]
But above is redirecting both news and offers to itemid 10 only

The correct itemid of news is 9 and of offers is 10. Infact there are other components too like com_blog, com_loan .. all have different and unique itemid

how to create the condition in such a way that com_news , com_prices is also taken as logic condition by htaccess so that the redirection rule can then be set for respective itemid

I can then customize accordingly the rule by specifying itemid of that component in rewriterule

Thanks
mycarhelpline is offline   Reply With Quote