Rewriting a specific URL structure doesn't work

Discuss Search Engine Optimization in relation to Joomla! 3.x. This forum will also have discussions on SEF/SEO Joomla! 3.x extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
alagazam
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Fri Jan 09, 2009 1:49 pm

Rewriting a specific URL structure doesn't work

Post by alagazam » Tue Feb 05, 2013 7:41 am

I have made a lot of rewrites in my .htaccess to solve the problem with no longer existing URLs. The rewrites are working just fine, with one exception: URLs like the one below still results in error code 500.

/component/content/4-fotoblogg/sessioner/25-de-foersta-vinterdagarna?Itemid=11

The problem seems to be related to URLs beginning with /component/content

I am using the default .htaccess file that comes with the Joomla installation, and I have just added my rewrites. Below you can see workning and non-working rewrites.

WORKING

RewriteCond %{QUERY_STRING} ^option=com_content&view=frontpage&Itemid=5$
RewriteRule ^index.php$ http://www.bilderavmig.se/bilder/brollop? [R=301]

NON-WORKING

RewriteCond %{QUERY_STRING} ^option=com_content&view=frontpage&Itemid=11$
RewriteRule ^component/content/4-fotoblogg/sessioner/25-de-foersta-vinterdagarna$ http://www.bilderavmig.se/fotobloggen/s ... terdagarna? [R=301]

I have a lot of URLs that are killing my SEO ranking and I really need a solution. Anyone?

User avatar
Humbert Humbert
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Sun Mar 24, 2013 5:15 am
Contact:

Re: Rewriting a specific URL structure doesn't work

Post by Humbert Humbert » Sun Mar 24, 2013 6:11 am

There are few REWRITE mod specialists here, When I have such a problem, I consult more knowledgeable people, like on Mod_Rewrite Forums.

Hummy

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 25952
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Rewriting a specific URL structure doesn't work

Post by Per Yngve Berg » Sun Mar 24, 2013 11:47 am

Have you tried to use the Redirect Component inside Joomla?


Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 3.x”