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  
 
   
Please help me - doing my head in.

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Simple mod rewrite
::  
Author Message
acapellas4u
PR0
PR0


Joined: 08 Aug 2006
Posts: 73
Location: Torquay, Devon. U.K

Please help me - doing my head in.Posted: Thu Jan 10, 2008 3:29 pm    Post subject: Please help me - doing my head in.

Not so long ago I came with an issue about rewrite not working for me and a lot of messages about the dreaded URL does not exist.

To cut a long story short I have managed to have a fair amount of success on my test phpBB SEO forum using my -http://www.acapellas4u.co.uk/.htaccess live forum's .htaccess file. Still can't read a lot of forum links though like groups and members etc. It's all set to simple mod_rewrite.

I don't get anywhere apart from errors when I use the .htaccess file generated from within the phpBBSEO tab.

I have enclosed firstly the phpBBSEO example which isn't working and below the one that does work for my live site.

Please advise guys Smile thanks...

Code:
# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

# 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 - MIXED
#####################################################
# 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]+)/topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES THROUGH USERNAME
RewriteRule ^member/([^/]+)/?$ /memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^messages/([^/]+)/?(page([0-9]+)\.html)?$ /search.php?author=$1&sr=posts&start=$3 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$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
#####################################################


Code:
DirectoryIndex index.html index.htm portal.php index.php
php_value max_execution_time 6200
php_value upload_max_filesize 10M
php_value memory_limit 50M
php_value post_max_size 10M
Options +FollowSymlinks
RewriteEngine On
RewriteBase /

#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# CATEGORIES
RewriteRule ^cat([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^topic([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
# PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################

php_value upload_progress_tracking.store_method "file"
php_value upload_progress_tracking.file 1
php_value upload_progress_tracking.file.filename_template "/tmp/uploadbar/upl_%s.txt"

_________________
Acapellas4U for all your free acapella, acappellas and djtools.
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

Please help me - doing my head in.Posted: Sun Jan 13, 2008 8:21 pm    Post subject: Re: Please help me - doing my head in.

Could you tell me more about your installation.
Here both .htaccess are meant for phpBB installed at the root level, which cannot be the case in the same domain.

Since it worked for phpBB2, there is no reason why it shouldn't with phpBB3.

++

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


Joined: 08 Aug 2006
Posts: 73
Location: Torquay, Devon. U.K

Please help me - doing my head in.Posted: Mon Jan 14, 2008 12:18 pm    Post subject: Re: Please help me - doing my head in.

dcz wrote:
Could you tell me more about your installation.
Here both .htaccess are meant for phpBB installed at the root level, which cannot be the case in the same domain.

Since it worked for phpBB2, there is no reason why it shouldn't with phpBB3.

++


Hello dcz, nice to see you - how's the new family?

http://phpbb3.acapellas4u.co.uk is the new test site.

Regards,

Rich

_________________
Acapellas4U for all your free acapella, acappellas and djtools.
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

Please help me - doing my head in.Posted: Wed Jan 16, 2008 10:31 am    Post subject: Re: Please help me - doing my head in.

All right, so forum and topic urls do works, there is some hope Very Happy

The profile and group url should work with the phpBB3 .htaccess you posted though.

Make sure the one online really is like the one you posted, could only be because it's still using the simple rewriterules for these.

As well, I noticed that -http://phpbb3.acapellas4u.co.uk/member2.html gives :
Code:
Not Found

The requested URL /profile.php was not found on this server


which means that the phpbb2 rewriterule for profile is active on the domain, so could you post the full .htaccess you are currently using ?

You'll only need to keep the old profile rewriterule (modified a bit though) since it's the only one we'll have to redirect (if you keep you current settings for profiles) from phpBB2.

++

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


Joined: 08 Aug 2006
Posts: 73
Location: Torquay, Devon. U.K

Please help me - doing my head in.Posted: Wed Jan 16, 2008 11:10 am    Post subject: Re: Please help me - doing my head in.

dcz wrote:

Make sure the one online really is like the one you posted, could only be because it's still using the simple rewriterules for these.

As well, I noticed that -http://phpbb3.acapellas4u.co.uk/member2.html gives :
Code:
Not Found

The requested URL /profile.php was not found on this server


which means that the phpbb2 rewriterule for profile is active on the domain, so could you post the full .htaccess you are currently using ?

You'll only need to keep the old profile rewriterule (modified a bit though) since it's the only one we'll have to redirect (if you keep you current settings for profiles) from phpBB2.

++


Hi dcz, I can confirm that this is the current .htaccess file from phpbb3.acapellas4u.co.uk

Code:

DirectoryIndex index.html index.htm portal.php index.php
php_value max_execution_time 6200
php_value upload_max_filesize 10M
php_value memory_limit 50M
php_value post_max_size 10M
Options +FollowSymlinks
RewriteEngine On
RewriteBase /

#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# CATEGORIES
RewriteRule ^cat([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^topic([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
# PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################

php_value upload_progress_tracking.store_method "file"
php_value upload_progress_tracking.file 1
php_value upload_progress_tracking.file.filename_template "/tmp/uploadbar/upl_%s.txt"


Regards.

_________________
Acapellas4U for all your free acapella, acappellas and djtools.
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

Please help me - doing my head in.Posted: Wed Jan 16, 2008 1:43 pm    Post subject: Re: Please help me - doing my head in.

Then just use the phpBB3 one instead, for profiles you'll just have to add :

Code:
# PROFILES SIMPLE
RewriteRule ^member([0-9]+)\.html$ memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]


after :

Code:
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES


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
acapellas4u
PR0
PR0


Joined: 08 Aug 2006
Posts: 73
Location: Torquay, Devon. U.K

Please help me - doing my head in.Posted: Wed Jan 16, 2008 3:35 pm    Post subject: Re: Please help me - doing my head in.

dcz wrote:
Then just use the phpBB3 one instead, for profiles you'll just have to add :

Code:
# PROFILES SIMPLE
RewriteRule ^member([0-9]+)\.html$ memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]


after :

Code:
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES


Wink

++


Thanks dcz, BUT the reason I logged this was

acapellas4u wrote:
I don't get anywhere apart from errors when I use the .htaccess file generated from within the phpBBSEO tab.

_________________
Acapellas4U for all your free acapella, acappellas and djtools.
Back to top
Visit poster's website
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 4006

Please help me - doing my head in.Posted: Wed Jan 16, 2008 4:36 pm    Post subject: Re: Please help me - doing my head in.

Maybe you just need to add :

Code:
DirectoryIndex index.html index.htm portal.php index.php
php_value max_execution_time 6200
php_value upload_max_filesize 10M
php_value memory_limit 50M
php_value post_max_size 10M
Options +FollowSymlinks


at the beginning of it, like you did for phpbb2, at least :
Code:
Options +FollowSymlinks

could be mandatory.

_________________
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  » phpBB mod Rewrite  » Simple mod rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: