Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Profile for Jemrada

  • OFFLINE
  • Time Zone: GMT +0:00
  • Local Time: 05:39
  • Posts: 1
  • Profile Views: 1585
  • Location: Unknown
  • Gender: Unknown
  • Birthdate: Unknown

Signature

Posts

Posts

emo
Hello,

I am currently trying to setup a site that is using JoomSEF.

I am needing to redirect all links to www without losing the link they are going to.

I am using this code
########## Begin 3rd Party or Core SEF Section
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End 3rd Party or Core SEF Section


I tried replacing the following
RewriteRule (.*) index.php


With
RewriteRule ^(.*)$ http://www.oakswings.com/$1 [L,R=301]


That just breaks the site.

Then I just tried to add this at the bottom of my htaccess
RewriteCond %{HTTP_HOST} ^oakswings.com [NC]
RewriteRule ^(.*)$ http://www.oakswings.com/$1 [L,R=301]


But that just redirects every link to /index.php

Any ideas?
Redirecting non-www ...
Category: JoomSEF 3
More
User Login Empty