| :: |
| Author |
Message |
thecashcow
Joined: 16 Aug 2006 Posts: 7
|
Posted: Wed Aug 16, 2006 3:22 am Post subject: Assistance Required (404 errors - searched forum) |
|
|
Hi Guys,
I've had a read through all the 404 related posts on the forum and still haven't been able to sort out my issue.
I have installed everything as per the Advanced Mod Rewrite.
- All of my forum categories link correctly to the topics with the html category titles, although
- The topics within the categories produce 404 not found errors which clicked
Site: http://www.netcashcows.com/forum/
Htaccess File
| Code: |
Options +FollowSymlinks -Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^netcashcows\.com$ [NC]
RewriteRule ^(.*) http://www.netcashcows.com/$1 [QSA,L,R=301]
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule forum/.+/([^/]+\.html)$ /forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^forum/.+-vc([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum/.+-vf([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule forum/.+-vf([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^forum/topic([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule forum/topic([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################
<Files .htaccess>
order allow,deny
deny from all
</Files>
IndexIgnore */* |
Your assistance is appreciated.
Josh |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15127
|
Posted: Wed Aug 16, 2006 8:37 am Post subject: Re: Assistance Required (404 errors - searched forum) |
|
|
And welcome
Don't worry it's nothing, you just installed the phpBB SEO mixed mod rewrite .htaccess while you're using the phpBB SEO Advanced mod Rewrite.
You just need to change this part :
| Code: | RewriteRule ^forum/topic([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule forum/topic([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L] |
to :
| Code: | # PAGINATED TOPIC
RewriteRule ^forum/.+-vt([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/.+-vt([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L] |
As well, you have small typos in your .htaccess :
| Code: | # FORUM PROTECTION RULE
RewriteRule forum/.+/([^/]+\.html)$ /forum/index.php [R=301,L] |
should be :
| Code: |
# FORUM PROTECTION RULE
RewriteRule ^forum/.+/([^/]+\.html)$ /forum/index.php [R=301,L] |
and :
| Code: | # FORUM
RewriteRule forum/.+-vf([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L] |
should be :
| Code: | # FORUM
RewriteRule ^forum/.+-vf([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L] |
Besides the mod seems well installed, the URLs are correct everywhere.
++ |
_________________ 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 |
|
 |
thecashcow
Joined: 16 Aug 2006 Posts: 7
|
Posted: Wed Aug 16, 2006 9:48 am Post subject: Re: Assistance Required (404 errors - searched forum) |
|
|
Thank you for the welcome dcz
I changed all that you recommended and now the original category URL's are showing 404 not found as well.
The HtAccess File now contains:
| Code: |
Options +FollowSymlinks -Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^netcashcows\.com$ [NC]
RewriteRule ^(.*) http://www.netcashcows.com/$1 [QSA,L,R=301]
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^forum/.+/([^/]+\.html)$ /forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^forum/.+-vc([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum/.+-vf([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum/.+-vf([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^forum/.+-vt([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/.+-vt([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################
<Files .htaccess>
order allow,deny
deny from all
</Files>
IndexIgnore */* |
I'd really appreciate your continued advice on this one.
Josh |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15127
|
Posted: Wed Aug 16, 2006 9:55 am Post subject: Re: Assistance Required (404 errors - searched forum) |
|
|
Ouch, basically, nothing works now.
Strange, make sure you upload the .htaccess correctly.
Then, I made you add the "^" anchor because it's supposed to be like this, but as it was working before, you may need to get rid of those with you particular server settings.
Or maybe it is the "/" at the beginning of "forum/" in the left part of the rewriterules.
So try re-uploading your .htaccess, making sure everything is correct.
If not enough, do get rid of the "/" as said.
If not enough, put them back and get rid of the "^".
We'll do 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 |
|
 |
thecashcow
Joined: 16 Aug 2006 Posts: 7
|
Posted: Wed Aug 16, 2006 9:58 am Post subject: Re: Assistance Required (404 errors - searched forum) |
|
|
I'll try the few combinations and give you an update  |
|
|
| Back to top |
|
 |
thecashcow
Joined: 16 Aug 2006 Posts: 7
|
Posted: Wed Aug 16, 2006 10:01 am Post subject: Re: Assistance Required (404 errors - searched forum) |
|
|
I have removed all the ^'s at the start and now both the category's and the topics open. So we are getting there
Now I'm left with 404 errors when attempting to start a new thread or post a reply to a topic.
Update: Appears it is all sorted now, your help is appreciated more than you could ever know, thank you again. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15127
|
|
| Back to top |
|
 |
thecashcow
Joined: 16 Aug 2006 Posts: 7
|
Posted: Wed Aug 16, 2006 10:40 am Post subject: Re: Assistance Required (404 errors - searched forum) |
|
|
| I speak too soon. Now my forum is throwing 404 errors on login's, logouts, linking from the main page, showing errors under each posters name in each post, redirects to public_html/forum instead of /forum from the main site, cannot get into my forum admin section, etc |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15127
|
|
| Back to top |
|
 |
thecashcow
Joined: 16 Aug 2006 Posts: 7
|
Posted: Wed Aug 16, 2006 10:44 am Post subject: Re: Assistance Required (404 errors - searched forum) |
|
|
Yep that's exactly where it is  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15127
|
|
| Back to top |
|
 |
thecashcow
Joined: 16 Aug 2006 Posts: 7
|
Posted: Wed Aug 16, 2006 10:48 am Post subject: Re: Assistance Required (404 errors - searched forum) |
|
|
Now it's making a liar of me Let me do some additional testing. I think it may be the server taking a while to update certain attributes. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15127
|
|
| Back to top |
|
 |
|
|