| :: |
| Author |
Message |
lavinya PR1


Joined: 24 Jul 2006 Posts: 159 Location: Turkey
|
Posted: Sat Sep 09, 2006 8:24 am Post subject: Re: Locking the www in urls |
|
|
dcz I have big problem
my problem is this system is showing doesnt lacking pages.
for example: there is no addresses like www. lavinya.net/phpbb2/about1594.html
or about159SDFSD4.html etc.... ...
but it is showing
my file is "phpBB2" (not bb, it must be BB)
and not exiting subdomain (eg dcz. lavinya.org) but redirect to main page ?
but it must not show.
this is spam I think.
please help me  |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
Posted: Sat Sep 09, 2006 3:29 pm Post subject: Re: Locking the www in urls |
|
|
| lavinya wrote: | dcz I have big problem
my problem is this system is showing doesn't lacking pages.
for example: there is no addresses like -www.lavinya.net/phpbb2/about1594.html
|
Well this could be fixed with something like :
| Code: | | RewriteRule ^phpbb2/(.*) /phpBB2/$1 [R=301,L] |
Just after the www rewriterule.
You may need to get rid of the L flag : [R=301,L] => [R=301]
| lavinya wrote: |
or about159SDFSD4.html etc.... ...
|
This is due to the able2know rewriterules, they are not strict enough and accept characters and digits where they should only accept digits.
Then, some intval(159SDFSD4) must end up being an integer, with luck being a real topic id.
This is just impossible with the phpBB SEO rewriterules, and is a duplicate source, especially if you run Google AdSense, as Google is as well grabbing URLs to spider from there, so the link only need to be used once to exist for Google.
| lavinya wrote: |
this is spam I think.
|
This is very possible someone started posting links like this, but could as well only be a user testing you mod rewrite and the Google AdSense to have grabbed it.
| lavinya wrote: |
and not exiting subdomain (eg dcz. lavinya.org) but redirect to main page ?
|
I am sorry I am to unsure about what you're saying here to answer. Could you elaborate a bit on this ?
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Fri Nov 03, 2006 5:15 am Post subject: Re: Locking the www in urls |
|
|
hi again
i learnt how can i lock www in subdomain
i want to lock www in this URL
-http://aerospacetalk.com/forum/
how can i do it ?
thanks in advance  |
_________________ چهار گوش - طراحی وب - مجله طراحی وب |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Fri Nov 03, 2006 1:10 pm Post subject: Re: Locking the www in urls |
|
|
its not clear for me
now the www is fixed in main domain
i mean -http://aerospacetalk.com will redirect to -http://www.aerospacetalk.com
i have problem with -http://aerospacetalk.com/forum/ |
_________________ چهار گوش - طراحی وب - مجله طراحی وب |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Mon Nov 06, 2006 3:45 am Post subject: Re: Locking the www in urls |
|
|
| dcz wrote: | | Do you have more than one .htaccess with rewriterules ? |
you're right
i had two .htaccess file
i removed one of them |
_________________ چهار گوش - طراحی وب - مجله طراحی وب |
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Wed Dec 13, 2006 4:43 pm Post subject: Re: Locking the www in urls |
|
|
one of my friend asked me " how can i lock www in url in windows IIS server ?"
is it possible ?  |
_________________ چهار گوش - طراحی وب - مجله طراحی وب |
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
sportman1280 phpBB SEO Team

Joined: 29 Nov 2006 Posts: 281
|
Posted: Mon Dec 18, 2006 3:35 am Post subject: Re: Locking the www in urls |
|
|
| Code: | RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*) http://www.example.com/$1 [QSA,L,R=301] |
works great! thanks  |
|
|
| Back to top |
|
 |
arch stanton PR1

Joined: 04 Oct 2006 Posts: 116
|
Posted: Tue Jan 09, 2007 1:30 am Post subject: Re: Locking the www in urls |
|
|
Hi dcz, as you know from another thread, I have had problems with 302 redirects from an old domain making Google think it is seeing duplicate content.
I have made example.org.uk an alias of example.co.uk as you recommended.
To get rid of the dupes for example.co.uk, I have added the following to my .htaccess:
| Code: | RewriteCond %{HTTP_HOST} ^example\.co.uk$ [NC]
RewriteRule ^(.*) http://www.example.co.uk/$1 [QSA,L,R=301] |
This seems to work fine. And to get rid of example.org.uk, I have added the following:
| Code: | RewriteCond %{HTTP_HOST} ^example\.org.uk$ [NC]
RewriteRule ^(.*) http://www.example.co.uk/$1 [QSA,L,R=301] |
But of course this doesn't work for www.example.org.uk. What code do I need to stop these dupes?
:
:
:
:
Edit: I have just added the following code:
| Code: | RewriteCond %{HTTP_HOST} ^www.example\.org.uk$ [NC]
RewriteRule ^(.*) http://www.example.co.uk/$1 [QSA,L,R=301] |
This does appear to work. Will Google now treat them as 301 redirects? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
Posted: Tue Jan 09, 2007 11:31 am Post subject: Re: Locking the www in urls |
|
|
I suggest to use only this :
| Code: | RewriteCond %{HTTP_HOST} !^www.example\.co\.uk$ [NC]
RewriteRule ^(.*) http://www.example.co.uk/$1 [QSA,L,R=301] |
So that anything leading to where the -www.example.co.uk domain is installed will be redirected to -http://www.example.co.uk/
Thus example.co.uk and example.org.uk and -wwwexample.org.uk.
And the redirection are HTTP 301, it's easy to check
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
arch stanton PR1

Joined: 04 Oct 2006 Posts: 116
|
Posted: Tue Jan 09, 2007 12:27 pm Post subject: Re: Locking the www in urls |
|
|
| dcz, remember example1 and example2 are slightly different spellings. So won't I need two separate bits of code anyway? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
|
|