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]
Moderator: General Support Moderators
Post by Sean Clement » Fri Oct 05, 2012 8:45 pm
Code: Select all
RewriteCond %{HTTP_HOST} ^www.robotower.com [NC]
RewriteRule (.*) http://robotower.com/$1 [L,R=301]
Post by Sean Clement » Sat Oct 06, 2012 2:36 pm
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'.
Post by Sean Clement » Sat Oct 06, 2012 3:17 pm
Return to “Administration Joomla! 2.5”
© 2005 - 2024 Open Source Matters, Inc. All Rights Reserved.