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: Select all
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/).