404 redirect error when trying to view a forum

phpBB SEO Premod for phpBB3 support forum.
This premodded version of phpBB3 includes the three different type of URL rewriting for phpBB3 by phpBB SEO. It comes with several other Search Engine Optimization mods installed.

Moderator: Moderators

404 redirect error when trying to view a forum

Postby flooryou » Sat Jun 27, 2009 4:23 pm

I have just installed the phpbb premod and adjusted the settings, uploaded the .htaccess file , and moved it to the root as directed. I have tried with all of the slash options and deleted the comments, and still can't view forum without an error message. Mod_rewrite is enabled on my server. Here is an example of the 301 redirect codes that have worked on my site:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^flooryou.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.flooryou.net$
RewriteRule ^forums/?(.*)$ "http\:\/\/flooryou\.net\/floor_board\/$1" [R=301,L]

RewriteCond %{HTTP_HOST} ^flooryou.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.flooryou.net$
RewriteRule ^main/page_home_.html$ "http\:\/\/flooryou\.net" [R=301,L]

Any assistance would be appreciated.
flooryou
 
Posts: 3
Joined: Sat Jun 27, 2009 4:10 pm

Advertisement

Re: 404 redirect error when trying to view a forum

Postby dcz » Sun Jun 28, 2009 8:54 am

These codes are pretty tricky and are very likely to end up into a redirection loop since your host is always the same no matter the directory in use.

You seem to want to do two things at a time, which is generally speaking not such a good idea : force the removing of the www prefix and redirect the domain's root to floor_board/

To do this you should rather use :
Code: Select all
RewriteCond %{HTTP_HOST} !^flooryou\.net$ [NC]
RewriteRule ^(.*)$ http://flooryou.net/$1 [QSA,L,R=301]

then :
Code: Select all
RewriteRule ^/?$ http://flooryou.net/floor_board/ [QSA,L,R=301]

in your domain's root .htaccess.

Even though I do not advise you to redirect the domain's root to a directory, it's just simpler and better to a) install your forum in domain's root in the first place or b) add some home page at the root level.

Then, about the premod's .htaccess, did you put it where the .htaccess generator red message told you to, and was this message consistent with your actual domain and forum location (if it was not, please check your phpBB Server and Cookie settings )?
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Re: 404 redirect error when trying to view a forum

Postby flooryou » Sun Jun 28, 2009 2:36 pm

Sorry, I may have thrown you off by posting those rewrite rules. They were from a different .htaccess file. the first one is to get rid of the suffix /main_page/home.html, and the second is to redirect directory "forums" to subdomain "floor_board" . I figured by showing those then we could figure out which way the .htaccess for the seo mods should be written to work on my server. I already tried the root folder "public.html" and the sub folder "floor_board" with the different slash options offered( probably 10 times each), and set the server and cookie settings.
flooryou
 
Posts: 3
Joined: Sat Jun 27, 2009 4:10 pm

Re: 404 redirect error when trying to view a forum

Postby flooryou » Sun Jun 28, 2009 5:48 pm

O K problem fixed. I just needed to add the code to the existing .htaccess folder instead of two folders in the same directory.
flooryou
 
Posts: 3
Joined: Sat Jun 27, 2009 4:10 pm


Return to phpBB SEO Premod

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 6 guests