redirection problem

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

redirection problem

Postby abendsonne » Thu Oct 10, 2013 4:30 am

hi i have a big problem with my url of the forum. please can someone assist me?

the forum works fine under:
-http://www.forum.net/reiseforum/

but all the links point to -http://www.forum.net/ and bring an 404 error

for example this url
-http://www.forum.net/dein-erstes-forum-f2.html

need to be normally
-http://www.forum.net/reiseforum/dein-erstes-forum-f2.html

the same with the the links of the category, the forums, the topics, and the user profiles.

im searching now for 2 days and i become a little crazy, but i dont want to give up. you are my last chance, please help me.

this is my .htaccess where i thing there have to be the error
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 lines
    # Options +FollowSymlinks
    # To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
    # Options -MultiViews
    # REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
    RewriteEngine On
    # Uncomment the statement below if you want to make use of
    # HTTP authentication and it does not already work.
    # This could be required if you are for example using PHP via Apache CGI.
    # RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
    # REWRITE BASE
    RewriteBase /
    # HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
    # RewriteCond %{HTTP_HOST} !^www\.forum\.net$ [NC]
    # RewriteRule ^(.*)$ http://www.forum.net/$1 [QSA,L,R=301]

    # DO NOT GO FURTHER IF THE REQUESTED FILE / DIR DOES EXISTS
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    #####################################################
    # PHPBB SEO REWRITE RULES ALL MODES
    #####################################################
    # AUTHOR : dcz www.phpbb-seo.com
    # STARTED : 01/2006
    #################################
    # FORUMS PAGES
    ###############
    # FORUM INDEX
    RewriteRule ^forum\.html$ /reiseforum/index.php [QSA,L,NC]
    # FORUM ALL MODES
    RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)(-([0-9]+))?\.html$ /reiseforum/viewforum.php?f=$2&start=$4 [QSA,L,NC]
    # TOPIC WITH VIRTUAL FOLDER ALL MODES
    RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /reiseforum/viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
    # TOPIC WITHOUT FORUM ID & DELIM ALL MODES
    RewriteRule ^([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /reiseforum/viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
    # PHPBB FILES ALL MODES
    RewriteRule ^resources/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /reiseforum/download/file.php?id=$2&t=$1 [QSA,L,NC]
    # PROFILES THROUGH USERNAME
    RewriteRule ^member/([^/]+)/?$ /reiseforum/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
    # USER MESSAGES THROUGH USERNAME
    RewriteRule ^member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /reiseforum/search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
    # GROUPS ALL MODES
    RewriteRule ^(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /reiseforum/memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]
    # POST
    RewriteRule ^post([0-9]+)\.html$ /reiseforum/viewtopic.php?p=$1 [QSA,L,NC]
    # ACTIVE TOPICS
    RewriteRule ^active-topics(-([0-9]+))?\.html$ /reiseforum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
    # UNANSWERED TOPICS
    RewriteRule ^unanswered(-([0-9]+))?\.html$ /reiseforum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
    # NEW POSTS
    RewriteRule ^newposts(-([0-9]+))?\.html$ /reiseforum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
    # UNREAD POSTS
    RewriteRule ^unreadposts(-([0-9]+))?\.html$ /reiseforum/search.php?search_id=unreadposts&start=$2 [QSA,L,NC]
    # THE TEAM
    RewriteRule ^the-team\.html$ /reiseforum/memberlist.php?mode=leaders [QSA,L,NC]
    # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

    # FORUM WITHOUT ID & DELIM ALL MODES
    # 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$ /reiseforum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([a-z0-9_-]+)\.html$ /reiseforum/viewforum.php?forum_uri=$1 [QSA,L,NC]
    # FIX RELATIVE PATHS : FILES
    RewriteRule ^reiseforum/.+/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ /reiseforum/$1 [QSA,L,NC,R=301]
    # FIX RELATIVE PATHS : IMAGES
    RewriteRule ^reiseforum/.+/(styles/.*|images/.*)/$ /reiseforum/$1 [QSA,L,NC,R=301]
    # END PHPBB PAGES
    #####################################################

thank you very much
abendsonne
 
Posts: 4
Joined: Wed Oct 09, 2013 3:59 pm

Advertisement

Re: redirection problem

Postby HB » Thu Oct 10, 2013 5:30 pm

It sounds like the script_path in the config table isn't set correctly. This article may prove helpful:

https://www.phpbb.com/kb/article/config ... -settings/
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1517
Joined: Mon Oct 16, 2006 2:25 am

Re: redirection problem

Postby FredSEO » Thu Oct 17, 2013 8:56 am

thanks for the help, HB! I also have the same problem.
FredSEO
 
Posts: 15
Joined: Mon Aug 05, 2013 8:52 am

Re: redirection problem

Postby abendsonne » Thu Oct 17, 2013 10:47 am

problem is not solved, i download the fresh phpbb seo premod and installed it same problem :(
abendsonne
 
Posts: 4
Joined: Wed Oct 09, 2013 3:59 pm

Re: redirection problem

Postby HB » Thu Oct 17, 2013 1:53 pm

Reading over this again, it sounds like you may have selected the "virtual root" option.

http://www.forum.net/dein-erstes-forum-f2.html (virtual) vs. http://www.forum.net/reiseforum/dein-er ... um-f2.html (non virtual)

Virtual Root:
If phpBB is installed in a sub folder (example phpBB3/), you can simulate a root install for rewritten links.

Virtual folder Profiles:
You can here choose to simulate a folder structure for profiles and user messages page (optional see below) URLs, phpBB/nickname-uxx/(topics/) or phpBB/memberxx/(topics/) instead of phpBB/nickname-uxx(-topics).html and phpBB/memberxx(-topics).html.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1517
Joined: Mon Oct 16, 2006 2:25 am


Return to phpBB SEO Premod

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Exabot [Bot] and 7 guests