Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Joomla URL Rewrite - Canonicalization

Status
Not open for further replies.

panini

MIS
Jun 1, 2001
136
GB
Hi there,

I'm having a problem with canonical URL's on my site hosted in Joomla. I switched one of my sites over to Joomla and the existing Google search results all point at but when you click on them you just end up at and not the specific page you wanted.

I used both suggestions below...

RewriteEngine On
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} ^domain\.co\.uk [NC]
RewriteRule (.*) [R=301,L]

and

RewriteEngine On
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} !^ [NC]
RewriteRule ^(.*)$ [L,R=301]

Both caused the site to not display ("Internet Explorer cannot display the webpage" in IE). I could get to admin page & login but not hit the URL directly.

Any ideas??

PS. Running PHP 5.2.5 and not very eager to upgrade my version of Joomla.
 
301 is a permanent redirect no matter what page is hit...to your domain.com

:-------------------------------------:
Do the DW »|MostarNetworks|
 
Try this:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.co.uk$ [NC]
RewriteRule ^(.*)$ [URL unfurl="true"]http://www.domain.co.uk/$1[/URL] [R=301,L]
</IfModule>
it works on one of my sites (admittedly not running joomla).

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Hi guys,

ChrisHunt I tried your suggestion but the same thing happened...page couldn't be displayed.

I'm really new to URL re-writes and have no idea how to fix this :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top