Joomla redirect error

Need help with the Administration of your Joomla! 2.5 site? This is the spot for you.

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
Sean Clement
Joomla! Explorer
Joomla! Explorer
Posts: 349
Joined: Fri Oct 13, 2006 8:24 am
Contact:

Re: Joomla redirect error

Post by Sean Clement » Fri Oct 05, 2012 8:45 pm

Put the following lines within your '.htaccess' file.

Add it before the '## Begin - Joomla! core SEF Section.' section starts.

Code: Select all

RewriteCond %{HTTP_HOST} ^www.robotower.com [NC]
RewriteRule (.*) http://robotower.com/$1 [L,R=301]
Sean Clement
Joomla! Extension Developer - Joomla! Security Experts
https://www.orangehatstudios.com/ - https://www.design-stripe.co.uk/services/web-design/

Sean Clement
Joomla! Explorer
Joomla! Explorer
Posts: 349
Joined: Fri Oct 13, 2006 8:24 am
Contact:

Re: Joomla redirect error

Post by Sean Clement » Sat Oct 06, 2012 2:36 pm

Yes, within your FTP program you will either be able to download the file to your machine and edit it or there may be an option to 'View/Edit' your '.htaccess' file.

Add the below code to your '.htaccess' file as follows:

Code: Select all

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

RewriteCond %{HTTP_HOST} ^www.robotower.com [NC]
RewriteRule (.*) http://robotower.com/$1 [L,R=301]
[code]

When a visitor visits your website with the 'www', they will automatically get redirected to your website within the 'www'.
Sean Clement
Joomla! Extension Developer - Joomla! Security Experts
https://www.orangehatstudios.com/ - https://www.design-stripe.co.uk/services/web-design/

Sean Clement
Joomla! Explorer
Joomla! Explorer
Posts: 349
Joined: Fri Oct 13, 2006 8:24 am
Contact:

Re: Joomla redirect error

Post by Sean Clement » Sat Oct 06, 2012 3:17 pm

When 'Google' next crawls your website it will recognize that the redirect is in place and will make changes accordingly, you don't need to worry about it.

When 'Google' next does a PR update (the update that is visible to us via a add-on) the 'non-www' version will get the same (if not more) PR rank as the previous 'www' version.
Sean Clement
Joomla! Extension Developer - Joomla! Security Experts
https://www.orangehatstudios.com/ - https://www.design-stripe.co.uk/services/web-design/


Locked

Return to “Administration Joomla! 2.5”