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  Next
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » SEO Techniques
::  
Author Message
lavinya
PR1
PR1


Joined: 24 Jul 2006
Posts: 159
Location: Turkey

Locking the www in urlsPosted: Sat Sep 09, 2006 8:24 am    Post subject: Re: Locking the www in urls

dcz I have big problem Sad

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 Sad

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.

Crying or Very sad

please help me Sad
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

Locking the www in urlsPosted: Sat Sep 09, 2006 3:29 pm    Post subject: Re: Locking the www in urls

lavinya wrote:
dcz I have big problem Sad

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
Visit poster's website
AmirAbbas
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2006
Posts: 529
Location: IRAN

Locking the www in urlsPosted: 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 Wink

_________________
چهار گوش - طراحی وب - مجله طراحی وب
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

Locking the www in urlsPosted: Fri Nov 03, 2006 11:06 am    Post subject: Re: Locking the www in urls

Well, it should be rather straighforward, something like :

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


in the domain's root (eg one level above forum/)

With off course the same small turnarounds as always, you may need to play a bit with syntax before it will fully work.


++

_________________
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
Visit poster's website
AmirAbbas
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2006
Posts: 529
Location: IRAN

Locking the www in urlsPosted: 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
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

Locking the www in urlsPosted: Sat Nov 04, 2006 8:39 am    Post subject: Re: Locking the www in urls

Do you have more than one .htaccess with rewriterules ?

The principle would be here to only use one at the root level. Please post your .htaccess in case you have troubles Wink

++

_________________
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
Visit poster's website
AmirAbbas
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2006
Posts: 529
Location: IRAN

Locking the www in urlsPosted: 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 Mr. Green

i had two .htaccess file Smile
i removed one of them

_________________
چهار گوش - طراحی وب - مجله طراحی وب
Back to top
Visit poster's website
AmirAbbas
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2006
Posts: 529
Location: IRAN

Locking the www in urlsPosted: 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 ? Rolling Eyes

_________________
چهار گوش - طراحی وب - مجله طراحی وب
Back to top
Visit poster's website
AmirAbbas
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2006
Posts: 529
Location: IRAN

Locking the www in urlsPosted: Thu Dec 14, 2006 12:57 pm    Post subject: Re: Locking the www in urls

bump Very Happy

_________________
چهار گوش - طراحی وب - مجله طراحی وب
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

Locking the www in urlsPosted: Thu Dec 14, 2006 1:09 pm    Post subject: Re: Locking the www in urls

bimp Very Happy

Well, I am currently working on it with a french phpBB SEO member. We are looking for a php solution.

It should be doable using isapi_rewrite, I'll see how, but I do not have any IIS installation to work with so ...

++

_________________
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
Visit poster's website
sportman1280
phpBB SEO Team
phpBB SEO Team


Joined: 29 Nov 2006
Posts: 281

Locking the www in urlsPosted: 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 Very Happy
Back to top
Visit poster's website
arch stanton
PR1
PR1


Joined: 04 Oct 2006
Posts: 116

Locking the www in urlsPosted: 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
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

Locking the www in urlsPosted: 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 Wink

++

_________________
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
Visit poster's website
arch stanton
PR1
PR1


Joined: 04 Oct 2006
Posts: 116

Locking the www in urlsPosted: 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
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

Locking the www in urlsPosted: Tue Jan 09, 2007 12:52 pm    Post subject: Re: Locking the www in urls

Nope, anything being different than -www.example.co.uk will be redirected, thus whatever.com too if it's linked to this folder Wink

++

_________________
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
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » SEO Techniques
Page 4 of 7 Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next

Navigation Similar Topics

Jump to: