| |
|
| :: |
| Author |
Message |
acapellas4u PR0

Joined: 08 Aug 2006 Posts: 73 Location: Torquay, Devon. U.K
|
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 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 |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
acapellas4u PR0

Joined: 08 Aug 2006 Posts: 73 Location: Torquay, Devon. U.K
|
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 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
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
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 |
|
 |
acapellas4u PR0

Joined: 08 Aug 2006 Posts: 73 Location: Torquay, Devon. U.K
|
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 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
acapellas4u PR0

Joined: 08 Aug 2006 Posts: 73 Location: Torquay, Devon. U.K
|
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 |
++ |
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 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4006
|
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 |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|