| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
jonhel
Joined: 08 Sep 2007 Posts: 3
|
Posted: Sat Sep 08, 2007 8:40 am Post subject: Problem with htaccess file? |
|
|
Hi,
I am testing this mod on my local PC using Easy PHP prior to loading it on my new live forum but I am experiencing problems.
I have got it to the stage where the forum loads and the URLs look correct e.g. http://127.0.0.1/phpBB2/welcome-f3.html but whenever I click on a link I get a 404 page not found error. I think this is due to an error in my htaccess file but I haven't been able to spot it as yet. The file is as follows:-
| Code: | 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 ^phpBB2/index.html$ phpBB2/index.php [QSA,L,NC]
# FORUM PROTECTION RULE
RewriteRule ^phpBB2/[a-z0-9_-]+/([^/]+\.html)$ phpBB2/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^phpBB2/[a-z0-9_-]*-c([0-9]+)\.html$ phpBB2/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^phpBB2/[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ phpBB2/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^phpBB2/[a-z0-9_-]*-f([0-9]+)\.html$ phpBB2/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^phpBB2/topic([0-9]+)-([0-9]+)\.html$ phpBB2/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^phpBB2/topic([0-9]+)\.html$ phpBB2/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^phpBB2/post([0-9]+)\.html$ phpBB2/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^phpBB2/member([0-9]+)\.html$ phpBB2/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES |
Anyone have any ideas what I've done wrong here? |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
jonhel
Joined: 08 Sep 2007 Posts: 3
|
Posted: Sat Sep 08, 2007 9:38 am Post subject: Easy PHP |
|
|
Thanks for the quick reply.
Yes I did do this in EasyPHP.
I experimented with these settings and when commented I got an access denied message when attempting to load the forum.
Perhaps I should try installing this on the live forum. I can easily restore the altered files from backup if I continue to get errors and the forum has only just gone live so is not yet in use. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
jonhel
Joined: 08 Sep 2007 Posts: 3
|
Posted: Sat Sep 08, 2007 11:31 pm Post subject: All working now |
|
|
I have applied the mod to my live site now and it is all working correctly.
Not sure what the problem was with Easy PHP.
The only change that was required on the live site was to remove the reference to index.html from the phpbb_seo_class.php file because a 404 error was occurring otherwise when clicking on link to forum home page.
Thanks again for your quick support and for a great mod.  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |