how I remove "www"?

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators

how I remove "www"?

Postby FoxDie » Wed Apr 11, 2012 3:15 am

hi,
(sorry for my bad english)


I have www.mydomain.com, but a dislake.
I'd like mydomain.com (remove www)

I have phpBB 3.0.10, and I installed the mod Zero Duplicate separately (all tools).

it's important: I have "Zero Dupicate" activate.


thx
FoxDie
 
Posts: 3
Joined: Sun Apr 08, 2012 7:19 pm

Advertisement

Re: how I remove "www"?

Postby Stephen26 » Wed Apr 11, 2012 6:40 am

In the .htaccess file search for:

Code: Select all
# HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN


Change the next two lines from:

Code: Select all
# RewriteCond %{HTTP_HOST} !^www\.mydomain\.com$ [NC]
# RewriteRule ^(.*)$ http://www.mydomain.com/$1 [QSA,L,R=301]


to:

Code: Select all
RewriteCond %{HTTP_HOST} !^mydomain\.com$ [NC]
RewriteRule ^(.*)$ http://mydomain.com/$1 [QSA,L,R=301]
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am

Re: how I remove "www"?

Postby FoxDie » Wed Apr 11, 2012 10:04 pm

thanks! working now!
FoxDie
 
Posts: 3
Joined: Sun Apr 08, 2012 7:19 pm


Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 7 guests


 
cron