Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
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
Reply

Bookmarks

Tags
htaccess, redirect

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:23 PM.


Advertisement
Log in to turn off these ads.