| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
AJRAD
Joined: 23 Aug 2007 Posts: 2 Location: England
|
Posted: Thu Aug 23, 2007 6:17 pm Post subject: 404 errors (mod_rewrite problems?) |
|
|
Followed the instructions step by step and it isn't working.
This is the site. - try accessing any forums, topics or member pages and you get 404 errors.
Notes:
I am not the site owner, but I'm the techie with complete admin.
We are running on a HostGator Baby Croc package.
I don't have a clue about mod_rewrite, but I've used my common sense when editing the .htaccess
The .htaccess:
| Code: |
# You could need to un-comment the following line
# Options +FollowSymlinks
RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^forum/index\.html$ /forum/index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^forum/[a-z0-9_-]*/([^/]+\.html)$ /forum/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^forum/[a-z0-9_-]*-c([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^forum/[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^forum/[a-z0-9_-]*-t([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
|
|
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4006
|
Posted: Thu Aug 23, 2007 8:09 pm Post subject: Re: 404 errors (mod_rewrite problems?) |
|
|
And welcome
So, the .htaccess you posted is supposed to be uploaded in the domain's root, eg one level above the forum/ folder where phpBB is installed.
Then it won't work with windows server running IIS, it's still possible to use the mod and to url rewrite but it's a little different.
As well, this requires that no .htaccess with rewriterules stays in the forum/ folder.
Then, if it does not work, you can try the right slash trick, try to get rid of all the slashes right before the path in the right par of the rewriterules :
| Code: | | RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L,NC] |
Becomes :
| Code: |
RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ forum/viewforum.php?f=$1&start=$2 [QSA,L,NC] |
If not enough, then, you should fist make sure that mod_rewrite is available on your server, to do so, you can use this post.
If you successfully test the mod_rewrite, then, you'll only need to put the same slashes the same way you did while testing.
As a last resort, try as well adding a slash right after the first "^" of each rewriterule :
RewriteRule ^forum vs RewriteRule ^/forum
But this is by experience rarely required. |
_________________ 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 |
|
 |
AJRAD
Joined: 23 Aug 2007 Posts: 2 Location: England
|
Posted: Thu Aug 23, 2007 8:29 pm Post subject: Re: 404 errors (mod_rewrite problems?) |
|
|
Thanks for the help!
I deleted the .htaccess that was in /forum/ and it works fine now. |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4006
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |