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
falkra
PR1
PR1


Joined: 11 Mar 2007
Posts: 156

Locking the www in urlsPosted: Sun Apr 15, 2007 6:38 pm    Post subject: Re: Locking the www in urls

The code is ok, but you have to add the slash char after .com when typing your urls.

This works well, and rewrites :
bigskyfans.com/gallery
Back to top
Visit poster's website
noworyz
PR0
PR0


Joined: 08 Jan 2007
Posts: 83

Locking the www in urlsPosted: Sun Apr 15, 2007 6:44 pm    Post subject: Re: Locking the www in urls

ahh, cool. Thanks. I guess I was testing by going to the actual url first, then deleting the www

It seems that the / after gallery is what is breaking it.

so.

bigskyfans.com/gallery works fine but bigskyfans.com/gallery/ doesn't work
Back to top
falkra
PR1
PR1


Joined: 11 Mar 2007
Posts: 156

Locking the www in urlsPosted: Mon Apr 16, 2007 6:25 am    Post subject: Re: Locking the www in urls

Well, w<hen y type -http://bigskyfans.com/gallery/, i am redirected to -http://www.bigskyfans.com/gallery/ automatically, your method is fine, removing the "www." on "real" urls so to speak.
Back to top
Visit poster's website
noworyz
PR0
PR0


Joined: 08 Jan 2007
Posts: 83

Locking the www in urlsPosted: Mon Apr 16, 2007 6:29 am    Post subject: Re: Locking the www in urls

it works for me now too. Must have been a cache issue with my browser.
Back to top
TheBiaatch



Joined: 30 Apr 2007
Posts: 1

Locking the www in urlsPosted: Mon Apr 30, 2007 12:01 pm    Post subject: Re: Locking the www in urls

Thanks alot for this , it worked like a charm Wink
Back to top
mattwa



Joined: 19 May 2007
Posts: 5

Locking the www in urlsPosted: Tue Jun 05, 2007 9:09 pm    Post subject: PHPBB3 www problem

Hi. Running PHPBB3 in a subfolder with advanced rewrite and zero dupe - neither of which seems to be the problem:) I redirected everything to www using

Code:

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


which worked fine with PHPBB2 on the same server. Now, everything works fine except for logging in. Whenever I try to log in, it redirects me back to the login page without logging me in. Same if I have it send me a new password or register a new username, just redirects me back to the same page. Removing those 2 lines fixes that problem (but I lose my redirect) so I don't think the SEO tools are the issue.

Any ideas?

Thanks
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13607

Locking the www in urlsPosted: Wed Jun 06, 2007 6:12 pm    Post subject: Re: Locking the www in urls

It could just be because your phpBB config uses "thenewsboards.com" as domain name where it should be "www.thenewsboards.com", in the server settings.

As well, make sure you set your cookie domain to ".thenewsboards.com" (noticed the dot (".")), to allow sessions to be shared other the sub domains (www.thenewsboards.com being a genuine subdomain of thenewsboards.com).

++

_________________
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
treatmekindly



Joined: 14 Jul 2007
Posts: 15

Locking the www in urlsPosted: Sun Aug 05, 2007 3:40 am    Post subject: Re: Locking the www in urls

I added the code as suggested in method one then my whole .htaccess file looks like this:

Code:

# You could need to un-comment the following line
# Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*) http://www.example.com/$1 [QSA,L,R=301]

RewriteBase /

#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^forums/index\.html$ /forums/index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^forums/[a-z0-9_-]+/([^/]+\.html)$ /forums/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^forums/[a-z0-9_-]*-c([0-9]+)\.html$ /forums/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^forums/[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /forums/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^forums/[a-z0-9_-]*-f([0-9]+)\.html$ /forums/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^forums/topic([0-9]+)-([0-9]+)\.html$ /forums/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^forums/topic([0-9]+)\.html$ /forums/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^forums/post([0-9]+)\.html$ /forums/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^forums/member([0-9]+)\.html$ /forums/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################


I then uploaded the .htaccess file to my domain treatwidevision.us (root). Is that all I have to do? Can you please check my forums at www.treatwidevision.us/forums to see if things work correctly and if I missed anything? Thanks.

Please do not quote my message when you reply.
Back to top
AmirAbbas
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2006
Posts: 529
Location: IRAN

Locking the www in urlsPosted: Mon Aug 06, 2007 8:28 am    Post subject: Re: Locking the www in urls

hi treatmekindly

i checked your forum
your htaccess rules for locking www doesn't work because:

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


you musr replace the word "example" with your domain and you must use .us instead of .com
you must use this code

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


Wink

_________________
طراحی وب ، آموزش سئو ، آموزش CSS ، phpbb فارسی ، phpbb3 فارسی ، دروپال فارسی
طراحی وب ، قالب وبلاگ ، استاندارد وب ، آموزش CSS و HTML ، آموزش php
Back to top
Visit poster's website
treatmekindly



Joined: 14 Jul 2007
Posts: 15

Locking the www in urlsPosted: Mon Aug 06, 2007 11:01 am    Post subject: Re: Locking the www in urls

Thanks. I fixed it. Can you please check it again? Does it work now?
I wonder if I understand this mod correctly. If I enter treatwidevision.us in the Internet Explorer browser or Firefox or Netscape, the URL that appears in the browser's Address box is -http://www.treatwidevision.us which is the same as when I enter -www.treatwidevision.us or http://treatwidevision.us in the browser's Address box, correct?
Back to top
AmirAbbas
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2006
Posts: 529
Location: IRAN

Locking the www in urlsPosted: Mon Aug 06, 2007 11:22 am    Post subject: Re: Locking the www in urls

now its working Razz
when your address doesn't have "www" the rewrite rules will redirect that address to proper page that contain "www"

for example:

-http://treatwidevision.us/forums/images-f24.html

will redirect to

-http://www.treatwidevision.us/forums/images-f24.html

_________________
طراحی وب ، آموزش سئو ، آموزش CSS ، phpbb فارسی ، phpbb3 فارسی ، دروپال فارسی
طراحی وب ، قالب وبلاگ ، استاندارد وب ، آموزش CSS و HTML ، آموزش php
Back to top
Visit poster's website
hosseintdk775



Joined: 28 Jun 2007
Posts: 6

Locking the www in urlsPosted: Sat Jan 19, 2008 2:46 pm    Post subject: Re: Locking the www in urls

In the name of the god.
hi,
Now we can use redirects in cpanel for this (it is easy Very Happy ).
Back to top
kaqpa



Joined: 12 Apr 2008
Posts: 2

Locking the www in urlsPosted: Sat Apr 12, 2008 7:28 am    Post subject: Re: Locking the www in urls

hi my brothers my site seo problem is this

i want login administrator panel and other login but link problem here

Code:
http://www.domain.netadm/index.php?sid=61b886ad3b2cde4c37f51cf7b94a2cc5


true

Code:
http://www.domain.net/forum/adm/index.php?sid=61b886ad3b2cde4c37f51cf7b94a2cc5


my htaccess codes

Code:
Options +FollowSymlinks
RewriteEngine On
RewriteBase /forum/
RewriteCond %{HTTP_HOST} !^www\domain\.net$ [NC]
RewriteRule ^(.*) http://www.domain.net$1 [QSA,L,R=301]


please help Sad
Back to top
kaqpa



Joined: 12 Apr 2008
Posts: 2

Locking the www in urlsPosted: Sat Apr 12, 2008 8:01 am    Post subject: Re: Locking the www in urls

i'm problem to solve my htaccess change this codes

Code:
Options +FollowSymlinks
RewriteEngine On
RewriteBase /forum/
RewriteCond %{HTTP_HOST} !^www\.domain\.net$ [NC]
RewriteRule ^(.*) http://www.domain.net/forum/$1 [QSA,L,R=301]


but this problem different now. i want login is administrator panel but problem is here;

Code:
Fatal error: Call to undefined function get_formatted_filesize() in /home/adobetur/public_html/forum/includes/acp/acp_main.php on line 313
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13607

Locking the www in urlsPosted: Wed Apr 16, 2008 11:25 am    Post subject: Re: Locking the www in urls

Looks like phpBB specific, is your forum up to date (all files ?)

_________________
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 6 of 7 Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next

Navigation Similar Topics

Jump to: