Urls Problem .. Plz Help

Discussions and support about the different URL Rewriting techniques for phpBB.

Moderator: Moderators

Urls Problem .. Plz Help

Postby egyfox » Tue Sep 09, 2008 9:34 am

hey

i installed the Mode and every thing works fine ... But i have only one probem

the posting link give me 404 Error and all non Rewrite links cause it have a wrong path..

Ex:
my Forum url link like that:
-http://forum.example.com

and the Error links like that:
-http://forum.example.com/f2/posting.php?mode=post&f=2
-http://forum.example.com/f2/search.php
-http://forum.example.com/f2/faq.php

The only link that have the right path like that:
-http://forum.example.com/memberlist.php

i don't know what i did wrong

please help me
egyfox
 
Posts: 4
Joined: Mon Aug 11, 2008 8:04 am

Advertisement

Postby dcz » Sat Sep 13, 2008 12:33 pm

This most likely comes from a bad configuration in phpBB's config for server name and script path.

Make sure you have :
Code: Select all
forum.example.com


as server name and :
Code: Select all
/

as script path. phpBB is indeed installed in the forum.example.com domain root dir, and our mod rewrite do use these values.

By the way, this implies that you set you cookie domain as :
Code: Select all
.example.com


with the dot, to be able to share sessions with the main domain.

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

Postby egyfox » Sat Sep 13, 2008 6:04 pm

hey

thank you dcz for ur reply

i did all that But the problem still happening

.... now i Stopped rewrite mod and all links works Fine ... that mean the problem with the mod config not the server config

So i'm sharing all mod config ... that may help

Code: Select all
Activate URL rewriting: YES
URL rewriting type: ADVANCED
Profiles and groups injection: YES
Virtual folder Profiles: YES
Profiles ID removing: YES
Common Search and User messages pages rewriting: YES
SID Removing: YES
Highlights Removing: YES
Remove small words: NO
Virtual Folder: YES
Virtual Root: NO
Forum URL caching: YES
Forum ID Removing: YES
Activate The No duplictate: YES
Activate the Zero duplictate: YES
Strict Mode: YES
Posts Redirections: ALL




And this is my .htaccess File



Code: Select all
    # 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 /
    # 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]+)/?(page([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 THROUGH USERNAME
    RewriteRule ^member/([^/]+)/?$ /memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
    # USER MESSAGES THROUGH USERNAME
    RewriteRule ^member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
    # GROUPS ADVANCED
    RewriteRule ^[a-z0-9_-]*-g([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

    #####################################################
    # GYM Sitemaps & RSS
    # Global channels
    RewriteRule ^rss(/(news)+)?(/(digest)+)?(/(short|long)+)?/?$ /gymrss.php?channels&$2&$4&$6 [L,NC]
    # END GYM Sitemaps & RSS
    #####################################################

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

    #####################################################
    # GYM Sitemaps & RSS
    # Main feeds & channels
    RewriteRule ^rss(/(news)+)?(/(digest)+)?(/(short|long)+)?(/([a-z0-9_-]+))?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?$9=$8&$2&$4&$6&gzip=$10 [L,NC]
    # Forum feeds
    RewriteRule ^[a-z0-9_-]*-f([0-9]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?$8=$1&$3&$5&$7&gzip=$9 [L,NC]
    # Module feeds without ids
    RewriteRule ^([a-z0-9_-]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?nametoid=$1&$3&$5&$7&modulename=$8&gzip=$9 [L,NC]
    # Google SitemapIndex
    RewriteRule ^sitemapindex\.xml(\.gz)?$ /sitemap.php?gzip=$1 [L,NC]
    # Forum sitemaps
    RewriteRule ^[a-z0-9_-]+-f([0-9]+)\.xml(\.gz)?$ /sitemap.php?forum=$1&gzip=$2 [L,NC]
    # Module sitemaps
    RewriteRule ^([a-z0-9_]+)-([a-z0-9_-]+)\.xml(\.gz)?$ /sitemap.php?$1=$2&gzip=$3 [L,NC]
    # END GYM Sitemaps & RSS
    #####################################################



i'm Now sure that the problem From the mod config but Don't know how to Fix it..

Need Help here :roll:
egyfox
 
Posts: 4
Joined: Mon Aug 11, 2008 8:04 am

Postby dcz » Sun Sep 14, 2008 7:59 am

So you do put your .htaccess in forum.example.com's root correct ?

Have you tried without the right slash ?
Eg :
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /viewforum.php?f=$1&start=$3 [QSA,L,NC]

becomes :
Code: Select all
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ viewforum.php?f=$1&start=$3 [QSA,L,NC]


and so on ?
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: 21382
Joined: Fri Apr 28, 2006 9:03 pm

Postby egyfox » Mon Sep 15, 2008 9:46 am

i did that too but no thing happened .... the Forum links still taking the virtual folder path

plz tell me what i did wrong

Still Need help Guys
egyfox
 
Posts: 4
Joined: Mon Aug 11, 2008 8:04 am

Postby dcz » Sat Sep 20, 2008 7:25 am

egyfox wrote:the Forum links still taking the virtual folder path


If you are talking about f2/, then you need to re-read this post above : http://www.phpbb-seo.com/boards/advance ... html#20320

Once you'll have made sure about this, it should work, unless of course, if mod_rewrite is not available on your server.

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

Postby egyfox » Sat Sep 20, 2008 3:02 pm

thank u dcz For reply

i don't know what u mean exactly in the last reply

But i think u may need to see the problem ur self

The Board URL: http://talk.webmasterhelp.info/

then try to go to any forum such as:
http://talk.webmasterhelp.info/f3/

and try to click NEWTOPIC Button

This is my problem :D

thank u
egyfox
 
Posts: 4
Joined: Mon Aug 11, 2008 8:04 am

Postby dcz » Sat Sep 27, 2008 7:03 am

Are you really sure that it's not only a setting issue like I told you above : http://www.phpbb-seo.com/boards/phpbb3- ... html#20196

Make sure you do not set up a script path for phpBB, it's installed in you sub domain's root, the f2/ should just never show up in you config table.

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


Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 10 guests