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  
 
   
301 redirect ?

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
loveseo
PR0
PR0


Joined: 29 Aug 2007
Posts: 73
Location: Egypt

301 redirect ?Posted: Thu Oct 18, 2007 12:45 am    Post subject: 301 redirect ?

hello

i want to move my forum from the root directory to subdomain
http://forum.eurospine2005.com/

because im going to setup phpnuk in the root directory so how can i give 301 to the subdomain please ?
Back to top
janmyszkier



Joined: 12 Oct 2007
Posts: 43
Location: Wroclaw, Poland.

301 redirect ?Posted: Thu Oct 18, 2007 1:46 pm    Post subject: Re: 301 redirect ?

http://www.phpbb-seo.com/boards/apache-mod-rewrite/discussions-vt1238.html

http://www.phpbb-seo.com/boards/apache-mod-rewrite/discussions-vt1300.html

http://www.phpbb-seo.com/boards/apache-mod-rewrite/discussions-vt1318.html

Enjoy Smile
Back to top
loveseo
PR0
PR0


Joined: 29 Aug 2007
Posts: 73
Location: Egypt

301 redirect ?Posted: Thu Oct 18, 2007 8:44 pm    Post subject: Re: 301 redirect ?

erorr 404 page canot found ! i hope dcz help me
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

301 redirect ?Posted: Sun Oct 21, 2007 3:47 pm    Post subject: Re: 301 redirect ?

Isn't :

Code:
RewriteRule ^phpBB/(.*)$ http://phpbb.example.com/$1 [L,R=301]


Working in the main domains .htaccess, before the www prefix redirection in case you implemented it ?

_________________
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
loveseo
PR0
PR0


Joined: 29 Aug 2007
Posts: 73
Location: Egypt

301 redirect ?Posted: Tue Oct 23, 2007 7:25 am    Post subject: Re: 301 redirect ?

dcz wrote:
Isn't :

Code:
RewriteRule ^phpBB/(.*)$ http://phpbb.example.com/$1 [L,R=301]


Working in the main domains .htaccess, before the www prefix redirection in case you implemented it ?


didnot work also i tried to put the code in the .htacces in the root but didnot work
i try to put it in the subdmain folder but give me http 404
please take a lookk to my domain names and .hacsess
http://www.eurospine2005.com/ http://forum.eurospine2005.com


.htacsess is in the root

Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^([a-z]+)_view_([0-9]+)\.html?$ $1.php?action=view&id=$2
RewriteRule ^([a-z]+)_list_([0-9]+)\.html?$ $1.php?action=list&cat_id=$2
RewriteRule ^mod_([a-zA-Z0-9]+)_([a-zA-Z0-9]+)\.html?$ mod.php?mod=$1&modfile=$2
RewriteRule ^mod_([a-zA-Z0-9]+)\.html?$ mod.php?mod=$1
RewriteRule ^page_([0-9]+)\.html?$ index.php?action=pages&id=$1
RewriteRule ^([a-z]+)\.html?$ $1.php




this is in the subdomain folder

Code:
# You may need to un-comment the following line
    # Options +FollowSymlinks
    # REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
    RewriteEngine On
    # REWRITE BASE
    RewriteBase /
    #HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION
#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET As FORUM INDEX
# RewriteRule ^forum\.html$ /index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ /memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^[a-z0-9_-]+(-([0-9]+))?\.html$ /viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES


also some urls didnot catched its was www.mysite.com/forums-f4.html
the forum your are requsted didnot found ! Rolling Eyes
http://forum.eurospine2005.com/forums64.html

Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 4006

301 redirect ?Posted: Tue Oct 23, 2007 8:45 am    Post subject: Re: 301 redirect ?

Looks like you are using the advanced mod rewrite and -http://forum.eurospine2005.com/forums64.html is using the simple standard.
You should take great care about the url standard you choose, you really do not want to change all of your URLs every other day.

The rewriterule suggested should be installed in the main domain's .htaccess, right after :

Code:
RewriteEngine on

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
loveseo
PR0
PR0


Joined: 29 Aug 2007
Posts: 73
Location: Egypt

301 redirect ?Posted: Tue Oct 23, 2007 8:09 pm    Post subject: Re: 301 redirect ?

hello
i succesfully installed the mod and evrey thisng working good but how can i redirect old pages to the new subdomain?

example : -http://www.eurospine2005.com/forums-f9.html
-http://forum..eurospine2005.com/forums-f9.html

i try this cod
Code:
RewriteRule ^forum/(.*)$ http://forum.eurospine2005.com/$1 [L,R=301]


in the .htacces in the root but didnot work also i test it in subdoamin but didnot work Embarassed
Back to top
TomaS
PR2
PR2


Joined: 08 Jun 2007
Posts: 226

301 redirect ?Posted: Tue Oct 23, 2007 8:40 pm    Post subject: Re: 301 redirect ?

that cant work because you redirect only one page maye you have to use one of mods here or wait bots will index it and replace old links

_________________
phpBB podpora-slovak phpBB support
slovenský preklad pre phpbb3-slovak translate for phpBB3
predaj a kupa domeny, marketing a internetove podnikanie- Slovak domain center
Back to top
Visit poster's website
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 4006

301 redirect ?Posted: Wed Oct 24, 2007 7:02 am    Post subject: Re: 301 redirect ?

It's not redirecting only one page, but rather all pages in the forum/ folder.

Anyway, try implementing the www redirection in the sub domain's folder.

Something like :

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

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: