Problem URL Rewriting

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

Problem URL Rewriting

Postby problem12 » Sat Sep 22, 2012 9:33 am

Hello.
First of all, I'm from Germany, so sorry for my bad english, but i hope you will understand me :lol:

Well, today i downloaded the phpbb seo premod 3.0.11 (-> http://downloads.phpbb-seo.com/seo-url- ... od-48.html).
I installed it successfully, and everything is working fine, but i got one problem.
The URL rewriting is not working.

URL :
*********/forum/dein-erstes-forum-f2.html


but there is a 404 Error :
Not Found

The requested URL /forum/dein-erstes-forum-f2.html was not found on this server.



I dont know whats wrong. Here are my settings :

Activate URL rewriting: Yes
URL rewriting type : Advanced
Activate SQL Rewriting : No
Profiles and groups injection: Yes
Virtual folder Profiles : No
Profiles ID removing: Yes
Common Search and User messages pages rewriting: Yes
SID Removing: Yes
Highlights Removing: Yes
Remove small words: No
Virtual Folder: No
Virtual Root : No
Forum URL caching: Yes
Forum ID Removing : Yes
Activate The No duplicate: Yes
Activate the Zero duplicate: Yes
Posts Redirections: off
Strict Mode: Yes

Cache file status:
The cache directory configured is : ./../phpbb_seo/cache/
The cache directory was successfully found.
The cache directory is writable.


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 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} !^*****\.pf-control\.de$ [NC]
    # RewriteRule ^(.*)$ http://*******.pf-control.de/$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 WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
    # RewriteRule ^forum/forum\.html$ /forum/index.php [QSA,L,NC]
    # FORUM ALL MODES
    RewriteRule ^forum/(forum|[a-z0-9_-]*-f)([0-9]+)(-([0-9]+))?\.html$ /forum/viewforum.php?f=$2&start=$4 [QSA,L,NC]
    # TOPIC WITH VIRTUAL FOLDER ALL MODES
    RewriteRule ^forum/(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
    # TOPIC WITHOUT FORUM ID & DELIM ALL MODES
    RewriteRule ^forum/([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
    # PHPBB FILES ALL MODES
    RewriteRule ^forum/resources/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /forum/download/file.php?id=$2&t=$1 [QSA,L,NC]
    # PROFILES ALL MODES WITH ID
    RewriteRule ^forum/(member|[a-z0-9_-]*-u)([0-9]+)\.html$ /forum/memberlist.php?mode=viewprofile&u=$2 [QSA,L,NC]
    # USER MESSAGES ALL MODES WITH ID
    RewriteRule ^forum/(member|[a-z0-9_-]*-u)([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /forum/search.php?author_id=$2&sr=$3&start=$5 [QSA,L,NC]
    # GROUPS ALL MODES
    RewriteRule ^forum/(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /forum/memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]
    # POST
    RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
    # ACTIVE TOPICS
    RewriteRule ^forum/active-topics(-([0-9]+))?\.html$ /forum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
    # UNANSWERED TOPICS
    RewriteRule ^forum/unanswered(-([0-9]+))?\.html$ /forum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
    # NEW POSTS
    RewriteRule ^forum/newposts(-([0-9]+))?\.html$ /forum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
    # UNREAD POSTS
    RewriteRule ^forum/unreadposts(-([0-9]+))?\.html$ /forum/search.php?search_id=unreadposts&start=$2 [QSA,L,NC]
    # THE TEAM
    RewriteRule ^forum/the-team\.html$ /forum/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 ^forum/([a-z0-9_-]+)(-([0-9]+))\.html$ /forum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^forum/([a-z0-9_-]+)\.html$ /forum/viewforum.php?forum_uri=$1 [QSA,L,NC]
    # FIX RELATIVE PATHS : FILES
    RewriteRule ^forum/.+/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ /forum/$1 [QSA,L,NC,R=301]
    # FIX RELATIVE PATHS : IMAGES
    RewriteRule ^forum/.+/(styles/.*|images/.*)/$ /forum/$1 [QSA,L,NC,R=301]
    # END PHPBB PAGES
    #####################################################



( I censored my page-name with ***** )
The .htaccess file is in the /forum/ file.

My Domain and cookie settings are fine, everything is alright.
I cleared my cache as well, but its not working.

So where is the bug? Can anyone help me?
Thanks a lot!!
problem12
 
Posts: 1
Joined: Sat Sep 22, 2012 9:19 am

Advertisement

Re: Problem URL Rewriting

Postby lik » Sat Sep 22, 2012 12:01 pm

What is the abolute system path to the phpbb scripts and DocumentRoot directory of your domain you use to access phpbb?
Suppose you have issues with "RewriteBase" directive. In case your phpbb installation is located in subdirectory of DocumentRoot directory (for example, DocumentRoot is /home/account/public_html and phpbb scripts located in /home/account/public_html/forum) you will need to adjust PHPBB SEO settings accordingly and use "RewriteBase /forum/". Do not forget to flush cache, it also may lead to described issue.
lik
 
Posts: 1
Joined: Wed Nov 16, 2011 10:25 am

Re: Problem URL Rewriting

Postby Stephen26 » Sat Sep 22, 2012 2:54 pm

problem12 wrote:The .htaccess file is in the /forum/ file.

If you want the .htaccess file in your phpBB folder you have to do the following:

Administration Control Panel -> phpBB SEO -> .htaccess -> Scroll down -> More Options: Yes -> Submit -> Scroll down again -> .htaccess location:
Put the .htaccess in the phpBB folder ? -> Yes -> Submit. Now copy and paste the generated code in the .htaccess file in your phpBB folder and clear the board cache again.

This will also change RewriteBase / to RewriteBase /forum/
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am

Re: Problem URL Rewriting

Postby anusha65 » Thu Feb 07, 2013 2:28 pm

Hello I have installed Seo mod in my website but after installation I get this error .
General Error
Language file ./../language/en/mods/acp_phpbb_seo.php couldn't be opened.
************************************************************************************************
BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/session.php
LINE: 2103
CALL: trigger_error()

FILE: [ROOT]/includes/session.php
LINE: 2062
CALL: user->set_lang()

FILE: [ROOT]/includes/session.php
LINE: 1619
CALL: user->add_lang()

FILE: [ROOT]/phpbb_seo/phpbb_seo_install.php
LINE: 41
CALL: user->setup()
****************************************************************************
Here is the URL: http://backup.seochatforum.com/phpbb_se ... nstall.php
Please kindly help me.
anusha65
 
Posts: 1
Joined: Mon Feb 04, 2013 5:53 pm

Re: Problem URL Rewriting

Postby Stephen26 » Mon Apr 15, 2013 3:56 pm

My answer is really late as I was away for quite some time. However, when I open the link to your forum I still receive the error message.

Language file ./../language/en/mods/acp_phpbb_seo.php couldn't be opened.


The file simply doesn't exist on your server -> http://backup.seochatforum.com/language ... bb_seo.php - error 404

Please copy the file and the other necessary ones in the /language/en/mods/ directory.
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am

Re: Problem URL Rewriting

Postby phpBB_Advance » Thu Apr 18, 2013 7:35 pm

but there is a 404 Error :
Not Found
The requested URL /forum/dein-erstes-forum-f2.html was not found on this server.


I think, this is regular error.

1. check working of mod_Rewrite work. In my practice this happens.
2. After configuration of seo mod you should resynchronize urls.
3. copy htaccess from acp to htaccess in board main .hraccess.
phpBB_Advance
 
Posts: 29
Joined: Sun Mar 17, 2013 12:44 pm


Return to phpBB SEO Premod

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 66 guests