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  
 
   
Domain name change

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
::  
Author Message
roady89



Joined: 21 Dec 2006
Posts: 13

Domain  name changePosted: Sat Mar 17, 2007 12:36 pm    Post subject: Domain name change

In reference to my post in google forums. I need to figure out how to do the redirects in .htaccess. I also want to change the phpbb folder from "golf_carts" to "golf-carts". Here is my .htacces file right now. I know I can change golf_carts to golf-carts easily but what about the google/yahoo/msn pages that have golf_carts in the url? How would I do that? Here is what i propose to do...I want to change from "no-keyword.com/golf_carts/index.html" to something like "keyword.com/golf-carts/index.html". Would it be better to leave the golf_cart the way it is? I dont think this is gonna be easy.

Code:
RewriteRule ^golf_carts/index\.html$ /golf_carts/index.php [QSA,L]
# RewriteRule ^golf_carts/.*/([^/]+\.html)$ /golf_carts/index.php [R=301,L] 
RewriteRule ^golf_carts/.*-c([0-9]+)\.html$ /golf_carts/index.php?c=$1 [QSA,L]
RewriteRule ^golf_carts/.*-f([0-9]+)-([0-9]+)\.html$ /golf_carts/viewforum.php?f=$1&start=$2 [QSA,L] 
RewriteRule ^golf_carts/.*-f([0-9]+)\.html$ /golf_carts/viewforum.php?f=$1 [QSA,L] 
RewriteRule ^golf_carts/.*-t([0-9]+)-([0-9]+)\.html$ /golf_carts/viewtopic.php?t=$1&start=$2 [QSA,L] 
RewriteRule ^golf_carts/.*-t([0-9]+)\.html$ /golf_carts/viewtopic.php?t=$1 [QSA,L] 
RewriteRule ^golf_carts/post([0-9]+)\.html$ /golf_carts/viewtopic.php?p=$1 [QSA,L] 
RewriteRule ^golf_carts/member([0-9]+)\.html$ /golf_carts/profile.php?mode=viewprofile&u=$1 [QSA,L] 
RewriteRule ^phpBB2/([^userpix/].*)$ /golf_carts/$1 [R=301,L,NC]
RewriteRule ^golf_carts/rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /golf_carts/rss.php?$1&$2 [L]
RewriteRule ^golf_carts/([a-zA-Z0-9]+)-rss([0-9]*)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /golf_carts/rss.php?$1=$2&$3&$4 [L]
RewriteRule ^golf_carts/.+-rf([0-9]+)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /golf_carts/rss.php?forum=$1&$2&$3 [L]
RewriteRule ^golf_carts/sitemaps\.([xml|xml\.gz]+)$ /golf_carts/sitemap.php [L]
RewriteRule ^golf_carts/sitemap\.([xml|xml\.gz]+)$ /golf_carts/sitemap.php [L]
RewriteRule ^golf_carts/([a-zA-Z0-9]+)-sitemap\.([xml|xml\.gz]+)$ /golf_carts/sitemap.php?$1 [L]
RewriteRule ^golf_carts/.+-gf([0-9]+)\.([xml|xml\.gz]+)$ /golf_carts/sitemap.php?forum=$1 [L]
RewriteRule ^golf_carts/urllist\.([txt|txt\.gz]+)$ /golf_carts/urllist.php [L]
RewriteRule ^phpBB2/sitemap\.php$ /golf_carts/sitemap.php [L]
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Domain  name changePosted: Sat Mar 17, 2007 2:06 pm    Post subject: Re: Domain name change

golf-carts/ might be tricky to use depending on your server's config.

Besides, golf_carts/ will do the same job, as underscores are now well handled by SEs.

It's simple to do, but you need to check first.

To test, just create a test-folder/ in your domain's root folder.

Then create a simple html file you'll name found.html, and put some content in it, like "hello".

Then add this rewriterule in your .htaccess :

Code:
RewriteRule ^test-folder/findme\.html$ /test-folder/found.html [L]


Now load yourdomain/test-folder/findme.html, you should see the found.html content. If not it most likely mean it will be tricky to go to the hyphens in folder names.

The thing is you need to make up your mind about the folder before you migrate your domain, in order to redirect directly to the final url instead of redirecting the domain, and then the folder.

To prepare the domain name migrating, you should first make sure the new domain is properly installed on your online web site.
Actually, both the old one and the new one should be installed on the same folder and both should work before we redirect them.
It's no big deal if you already install the new domain before you redirect because no link should mention it so far and we'll redirect it very soon.

Then the trick will, once you'll have made up your mind about the folder, be to implement the www prefix redirection, method n°2, using the new domain. The older one will once implemented as well be redirect properly.

You'll have to update phpBB config, server name should now mention your new domain url (with www prefix).

And you'll be done.

++

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



Joined: 21 Dec 2006
Posts: 13

Domain  name changePosted: Sat Mar 17, 2007 9:41 pm    Post subject: Re: Domain name change

Since the SE's dont have a problem with the hyphenated words I will leave that alone to simplify the domain name change. I'm still not 100% on the name change yet. I just think the new domain name with the keywords in it will help the serps a bunch.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: