Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Changing http:// to http://www.
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 3 (Joomla 1.5 compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1
  • 2

TOPIC: Changing http:// to http://www.

Changing http:// to http://www. 15 years, 6 months ago #7149

order #4739

Hi, I tried to do a 301 redirect but it doesn't work on the front end. Can you give me some info on how to do this. I want all my urls to point to www instead of without.

I went to the 301 section of joomsef. I entered the from url as abcd.com and to url as www.abcd.com. When i go to the front end and type abcd.com, I still get abcd.com

Am I doing something wrong?

Also, how do I do this for all urls instead of just the homepage url. Is there a setting I need to turn on that will automatically do this for all urls?
The topic has been locked.

Re:Changing http:// to http://www. 15 years, 6 months ago #7150

My site is a secure ecommerce site with virtuemart extension. So we have https url's as well. Not sure if that makes a difference but thought I should mention.
The topic has been locked.

Re:Changing http:// to http://www. 15 years, 6 months ago #7151

  • jaku
Hello,

this is not possible to do with JoomSEF 301 editor.
You need to put some rewrite rules directly to your .htaccess file to do that.

An example would be:

 
RewriteCond %{HTTP_HOST} !www\.domain\.com$
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
 
Last Edit: 15 years, 6 months ago by .
The topic has been locked.

Re:Changing http:// to http://www. 15 years, 6 months ago #7154

Thanks jan. I copied the above with my domain into the htaccess file but it still doesn't work. Can you confirm the below is correct.

RewriteCond %{HTTP_HOST} !www.outfitadditions.com$
RewriteRule ^(.*)$ www.outfitadditions.com/$1 [R=301,L]
The topic has been locked.

Re:Changing http:// to http://www. 15 years, 6 months ago #7156

I figured it out. Minor syntax issue with above. I looked it on askapache.com.

Thanks.
The topic has been locked.

Re:Changing http:// to http://www. 15 years, 6 months ago #7157

  • jaku
Hello,

ok, please, post here your final solution. It might be usefull for others as well.
The topic has been locked.
  • Page:
  • 1
  • 2
Přihlášení uživatele Prázdný