Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-01-11 15:23:49

spookypld
New Member
Registered: 2010-01-11
Posts: 2

redirect without www to with www

Hi!

I’m using Textpattern to develop my site http://www.bit-tech.net.pl and everything have been fine until I started messing up with mod rewrite. I’d been trying to redirect http://bit-tech.net.pl to http://www.bit-tech.net.pl I’d added one rule and then I did discover that it doesn’t work. I’d undo everything, but then found some addresses aren’t working. That’s where my nightmare began. I can’t make some addresses to work even if I change URLs. I see some addresses starts with http://bit-tech.net.pl and some with just bit-tech.net.pl Some works, other not.

What I’m truly asking for is the rule to redirect textpattern site from without www to with www. I want also to know what should be (in this case) my site address (in the site configuration site address)?

Last edited by spookypld (2010-01-11 15:35:30)

Offline

#2 2010-01-11 16:21:41

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

Re: redirect without www to with www

Set directly after the RewriteEngine ON:

 RewriteCond %{HTTP_HOST} !^www\.bit-tech\.net\.pl$ 
 RewriteRule ^(.*)$ http://www.bit-tech.net.pl/$1 [L,R=301]

I want also to know what should be (in this case) my site address (in the site configuration site address)?

www.bit-tech.net.pl


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#3 2010-01-11 16:22:45

spookypld
New Member
Registered: 2010-01-11
Posts: 2

Re: redirect without www to with www

hi. problem solved. it was some Chromium/cach_plugin issue. Now works perfect.

Offline

Board footer

Powered by FluxBB