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  
 
   
Problem with htaccess file?

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
::  
Author Message
jonhel



Joined: 08 Sep 2007
Posts: 3

Problem with htaccess file?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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Problem with htaccess file?Posted: Sat Sep 08, 2007 9:30 am    Post subject: Re: Problem with htaccess file?

And welcome Very Happy

Did you activate the mod_rewrite module in easyphp, as suggested in the mod rewrite release thread ?

There are two line to uncomment before easyphp will load the mod_rewrite module. Beside your .htaccess should work nicely as is in the www folder.

++

_________________
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
jonhel



Joined: 08 Sep 2007
Posts: 3

Problem with htaccess file?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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Problem with htaccess file?Posted: Sat Sep 08, 2007 10:19 am    Post subject: Re: Easy PHP

jonhel wrote:
I experimented with these settings and when commented I got an access denied message when attempting to load the forum.

The idea is to un-comment the line in the easyphp httpd config file.

This .htaccess should really work as is in the www/ folder with easyphp 1.8.

++

_________________
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
jonhel



Joined: 08 Sep 2007
Posts: 3

Problem with htaccess file?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. Very Happy
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Problem with htaccess file?Posted: Mon Sep 10, 2007 8:25 am    Post subject: Re: Problem with htaccess file?

Great Very Happy

As said in the install, you need to uncomment the first rewriterule in the .htaccess if you want to use "index.html" (or whatever) as your forum homepage.

++

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: