Forums Return 404

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators

Forums Return 404

Postby Slantsixx » Mon Feb 01, 2010 6:09 pm

I successfully installed phpbb-SEO on my site. When you click on any of the forums it returns a 404. A lot of the other links work though, such as the UCP, the ACP, member list, etc. None of the forums, threads, or individual member pages work.

I'll explain my setup. I have the phpBB located at -http://domain.com/directory/chat/ The website is set up with a subdomain at -http://chat.domain.com/ to point to the forum. You can access the forum through either the subdomain or the direct link and it works the same either way, except for the forums and threads.
I currently have Rewriting turned on to remove the www from the link. The main website is located in the domain.com/directory/ location, so I also have Rewriting turned on to remove /directory/ from the URL so it doesn't show up on each page. I don't think this is interfering with the phpBB rewriting since some of the links work.

I've tried as much as I can, and nothing will work. I've tried the phpBB-SEO code in both the main .htaccess location as well as in the -http://domain.com/directory/Chat/ location, and it does not seem to make things better or worse.

Here is the main portion of the .htaccess if it helps:
Code: Select all
RewriteEngine On
# REWRITE BASE
RewriteBase /Chat/
# HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
# RewriteCond %{HTTP_HOST} !^chat\.domain\.com$ [NC]
# RewriteRule ^(.*)$ http://chat.domain.com/$1 [QSA,L,R=301]

RewriteCond $1 !^directory/
RewriteRule (.*) /directory/$1 [L]

RedirectMatch permanent ^/Chat/(.*)$ http://chat.domain.com/$1


I don't know if I've covered everything or not. Let me know if you need more info.

Thanks
Slantsixx
 
Posts: 1
Joined: Mon Feb 01, 2010 5:47 pm

Advertisement

Re: Forums Return 404

Postby dcz » Sun Feb 14, 2010 12:26 pm

So if chat.domain.com is the phpBB domain you want, then you should set it up properly for it : phpBB Server and Cookie settings
You don't have to care about the fact your sub domain is also a sub dir of the main domain for phpBB set up.

Meaning, you should use :
Code: Select all
server name : chat.domain.com
script path : /
cookie domain : .domain.com


in your case.

Then generate an .htaccess and put it in directory/chat/ and everything should be all right.

++
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: 21325
Joined: Fri Apr 28, 2006 9:03 pm


Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 11 guests