| :: |
| Author |
Message |
Professional

Joined: 07 Apr 2008 Posts: 33
|
Posted: Tue Apr 29, 2008 6:09 am Post subject: Re: Locking the www in urls |
|
|
is it work with phpbb 3.0.1 ?
my htaccess code now is:
| Code: | RewriteEngine on
RewriteCond %{HTTP_HOST} ^mobile4persian.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.mobile4persian.com$
RewriteRule ^/?$ http://www.mobile4persian.com/forum/ [R=301,L]
RewriteCond %{HTTP_HOST} ^m4pshop.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.m4pshop.net$
RewriteRule ^/?$ http://www.m4shop.net/commerce [R=301,L] |
but it open with and without www
my site:http://mobile4persian.com |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 2383
|
Posted: Tue Apr 29, 2008 8:27 am Post subject: Re: Locking the www in urls |
|
|
m4pshop.net does not seems to be online.
So, if you have an .htaccess is located in a sub dir, with this .htaccess in the domain's root, you need to implement the www prefix redirection in the forum's .htaccess as well. So far it's working with mobile4persian.com, but not with mobile4persian.com/forum/ |
_________________
|
|
| Back to top |
|
 |
Professional

Joined: 07 Apr 2008 Posts: 33
|
Posted: Tue Apr 29, 2008 3:44 pm Post subject: Re: Locking the www in urls |
|
|
this .htaccess file is located at root not forum folder.
and my server have 2 domain that m4pshop.net is not used yet.
so can u plz say what shoud be exactly the .htaccess file?  |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 2383
|
Posted: Wed Apr 30, 2008 9:27 am Post subject: Re: Locking the www in urls |
|
|
| Professional wrote: | | this .htaccess file is located at root not forum folder. |
I know, that's why you need to implement the www prefix redirection in the one located in the forum dir as well. |
_________________
|
|
| Back to top |
|
 |
Professional

Joined: 07 Apr 2008 Posts: 33
|
Posted: Wed Apr 30, 2008 12:57 pm Post subject: Re: Locking the www in urls |
|
|
yes that's right.
but now what shoud i do?
i am confused. |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 2383
|
Posted: Wed Apr 30, 2008 1:37 pm Post subject: Re: Locking the www in urls |
|
|
Add something like :
| Code: | RewriteCond %{HTTP_HOST} !www\.mobile4persian\.com
RewriteRule ^(.*)$ http://www.mobile4persian.com/forum/ [R=301,L] |
In you forum's .htaccess.
But you may want to install some of our SEO mods for phpBB3, the zero duplicate would perform this redirection by default. |
_________________
|
|
| Back to top |
|
 |
Professional

Joined: 07 Apr 2008 Posts: 33
|
Posted: Wed Apr 30, 2008 2:31 pm Post subject: Re: Locking the www in urls |
|
|
ye i know.
but i have a scroll that show the last posts and is very important for me.
i want to know that this system will working after install the seo mods?(that links will change)
i asked my question also here but dear dcz looks so busy:
http://www.phpbb-seo.com/boards/advanced-seo-url/discussions-vt2352.html |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 2383
|
Posted: Fri May 02, 2008 12:26 pm Post subject: Re: Locking the www in urls |
|
|
I answered  |
_________________
|
|
| Back to top |
|
 |
Professional

Joined: 07 Apr 2008 Posts: 33
|
Posted: Sat May 03, 2008 1:20 pm Post subject: Re: Locking the www in urls |
|
|
tnx admin  |
|
|
| Back to top |
|
 |
|
|