| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3482
|
Posted: 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


Joined: 07 Apr 2008 Posts: 239 Location: 1/2 of the World
|
|
| Back to top |
|
 |
torgheh

Joined: 31 Jan 2007 Posts: 2
|
Posted: 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
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?
tnx  |
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |