A lot of problem (err 404, template not correct)

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

Moderator: Moderators

A lot of problem (err 404, template not correct)

Postby franktombino » Fri Sep 19, 2008 2:35 pm

Hi all.

I've a lot of problem with the Advanced Mod Rewrite.

This is a test on my website: http://www.bet-up.com/maffi

I've install the mod, and it doesn't work correctly.

1) When I try to open every forum, it try to open -http://localhost/ecc ecc... I don't understand when it find this parameters. (In table phpbb_config, there are only 2 voices referred to localhost: cookie_domain and servername. What I do modify?)

2) So, If I modify manually in the address bar, and I write http://www.bet-up.com/maffi/regolamento ... ni-f4.html, the discussion appear, but it don't read the styles correctly.

The .htaccess is in /maffi folder and is the same there is in /maffi/phpbb_seo/cache.

# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

# You may need to un-comment the following line
# Options +FollowSymlinks
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /maffi/
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^forum\.html$ index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^member([0-9]+)\.html$ memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^member([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS SIMPLE
RewriteRule ^group([0-9]+)(-([0-9]+))?\.html$ memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^active-topics(-([0-9]+))?\.html$ search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^unanswered(-([0-9]+))?\.html$ search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^newposts(-([0-9]+))?\.html$ search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z0-9_-]+)(-([0-9]+))\.html$ viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z0-9_-]+)\.html$ viewforum.php?forum_uri=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################


In the phpbb_config, the parameters of script_path is: maffi/

I've a site with joomla, and I've the joomlasef installed on my website. I've another .htaccess, on the root of my site.

I'm a newbie for the SEO with phpbb. Please help me. And sorry for my english... I'm Italian.

Thank you in advance.
franktombino
 
Posts: 5
Joined: Fri Sep 19, 2008 8:52 am

Advertisement

Postby dcz » Sat Sep 20, 2008 11:44 am

If localhost shows up in your urls, it means that the phpBB config is not set properly, you need to set the server name to your online domain name, eg :
Code: Select all
www.bet-up.com


Your cookie domain should be set to :
Code: Select all
.bet-up.com


with the dot ("."), and your script path to :
Code: Select all
/maffi


Since you can manually load a rewritten url, the .htaccess is working, this as well mean that the zero duplicate is not installed / activated, so you should install / activate it.

About the style, you need to make sure you properly modified the templates files, and cleared the template's cache after you did in the style ACP.

++
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

Postby franktombino » Mon Sep 22, 2008 1:40 pm

Hi dcz, and many thanks for this information. Now, my phpbb working ok.

I've installed so the zero duplicate and the gym sitemaps.

I've only another problem, when I activate this options:

Profiles and groups injection:
You can here chose to inject nicknames, group names and user messages page (optional see below) in their URLs instead of the default static rewriting, phpBB/nickname-uxx.html instead of phpBB/memberxx.html.


Now, when I click on a nickname, the forum says me: "The forum specificated doesn't exist".

The .htaccess rewrite rule is:
Code: Select all
# PROFILES ADVANCED
RewriteRule ^maffi/[a-z0-9_-]*-u([0-9]+)\.html$ /maffi/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]


Please, can you have a solution so for this problems?

Thanks 4 all your work.
franktombino
 
Posts: 5
Joined: Fri Sep 19, 2008 8:52 am

Postby franktombino » Tue Sep 23, 2008 11:09 am

Excuse me, I've installed the simple SEO URL... :oops:

Now, it work very perfectly.

Very very thanks for the work of all the group PHPBB-SEO. :D
franktombino
 
Posts: 5
Joined: Fri Sep 19, 2008 8:52 am


Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests