phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Locking the www in urls
Goto page Previous  1, 2, 3, 4, 5, 6, 7
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » SEO Techniques
::  
Author Message
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3482

Locking the www in urlsPosted: Wed Jun 04, 2008 3:45 pm    Post subject: Re: Locking the www in urls

These are not good, because you do redirect every request without the www prefix to the forum index, it could as well partly explain your other matter, in case many url where indexed without the www prefix before you did put this up.

Use :

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.mobile4persian\.com [NC]
RewriteRule ^(.*)$ http://www.mobile4persian.com/$1 [R=301,L]


It's enough for all cases.

Then, for your index redirection, I do not encourage you do it, there is no real point to install phpBB in a sub directory if you do not want the domain' root to be used. You'd better set up a home page (even basic) for he root directory if you want to keep this structure, you'd start to build PR on it for when you'd want to dev the domain root level a bit in your site.

About linking, example.com/forum/ and example.com/forum/index.php are duplicate, so you'd bnetter choose one or the other and only link to it. Again our mod rewrite with the zero duplicate do take care about this duplicate as well : http://www.phpbb-seo.com/boards/index.php

Keeping this structure, you'd as well need to link the domain root level(www.example.com/).

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
Professional
PR2
PR2


Joined: 07 Apr 2008
Posts: 239
Location: 1/2 of the World

Locking the www in urlsPosted: Fri Jun 06, 2008 11:49 am    Post subject: Re: Locking the www in urls

tnx i'll test it.

_________________
انجمن تخصصی موبایل برای ایرانیان
http://www.mobile4persian.com
برنامه موبایل - بازی موبایل - تم موبایل - اخبار موبایل - ترفند موبایل - s60 -s60 3rd- s80-s90-java-pocket pc-palm-ppc-UIQ3-UIQ
Back to top
Visit poster's website
torgheh



Joined: 31 Jan 2007
Posts: 2

Locking the www in urlsPosted: Tue Oct 07, 2008 7:12 pm    Post subject: Re: Locking the www in urls

Hi admin
I have plesk control panel and it have not the redirect option Sad

I have a new cms on a sub folder that named “en”

How can I lock www and index.php for it to have finally this address

-www.toranj-gem.com/en/index.php

i dont want it in subdomain i want it to be like your site

so can u plz say what shoud be the .htaccess file for this problem? Embarassed

tnx Smile
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » SEO Techniques
Page 7 of 7 Goto page Previous  1, 2, 3, 4, 5, 6, 7

Navigation Similar Topics

Jump to: