Phpbb SEO URL wrong redirect and 404 error page problem

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

Moderator: Moderators

Phpbb SEO URL wrong redirect and 404 error page problem

Postby Thebo » Sat Apr 14, 2012 10:41 am

I have wordpress and phpbb3 installed, Mydomain.com is the wordpress directory while Mydomain.com/forum is the phpbb directory, i installed the mod very well and all things are good except for that the links are all wrong, because they changed to Mydomain.com/TOPIC-TITLE instead of Mydomain.com/forum/TOPIC-TITLE. I read many topics to understand my problem and i think it may be related to .htaccess file but i don't know exactly what to do because i amnot an expert i only know main installing steps of phpbb and i 'd like you to help me to solve this problem.
Last edited by Thebo on Sat Apr 14, 2012 12:39 pm, edited 1 time in total.
Thebo
 
Posts: 5
Joined: Sat Apr 14, 2012 10:36 am

Advertisement

Re: Facing a problem with phpbb mod install

Postby Stephen26 » Sat Apr 14, 2012 11:10 am

Is Administration Control Panel -> Server configuration -> Server settings -> Server URL settings -> Script path: /forum ?
Where did you put the .htaccess file (in the /forum/ folder or the domain root directory) and what is your RewriteBase ?
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: 427
Joined: Mon May 03, 2010 7:06 am

Re: Facing a problem with phpbb mod install

Postby Thebo » Sat Apr 14, 2012 11:53 am

I did the script path part
I amnot sure about this .htaccess part, I copied the code present in the path ACP>PHPSEO>.htaccess and added it before the codes present in the .htaccess file in the domain root directory.
"what is your RewriteBase ?"
I don't know what is the rewritebase :$
Thebo
 
Posts: 5
Joined: Sat Apr 14, 2012 10:36 am

Re: Facing a problem with phpbb mod install

Postby Stephen26 » Sat Apr 14, 2012 12:07 pm

Thebo wrote:I did the script path part

Was the script path already /forum ? If not and it was / you must generate a new .htaccess code and use that one.

Open the .htaccess file and search for:

Code: Select all
RewriteBase


Is it /forum ?
Last edited by Stephen26 on Sat Apr 14, 2012 12:16 pm, edited 2 times in total.
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: 427
Joined: Mon May 03, 2010 7:06 am

Re: Facing a problem with phpbb mod install

Postby Thebo » Sat Apr 14, 2012 12:12 pm

Stephen26 wrote:
Thebo wrote:I did the script path part

Was the script path already /forum ? If not and it was / you must generate a new .htaccess code and use that one.

Open the .htaccess file and search for:

Code: Select all
RewriteBase


Is it /forum ?

No it wasnot forum it was forums/phpbb3
I uninstalled the mod and installed it again
Now the url is mydomain/forum/POST-TITLE which is ok but it give me "ERROR 404 - PAGE NOT FOUND"


If you mean the codes in the wordpress htaccess which is present in the domain root directory here it is:
Code: Select all
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress



Can you please tell me the steps of the .htaccess, because i don't know it.
Thebo
 
Posts: 5
Joined: Sat Apr 14, 2012 10:36 am

Re: Facing a problem with phpbb mod install

Postby Stephen26 » Sat Apr 14, 2012 12:20 pm

Make sure your phpBB Server and Cookie settings are correct.

I don't have Wordpress + phpBB-SEO running at the same time, but I guess you could use the original Wordpress .htaccess in your domain's root directory (remove the code from phpBB-SEO you copied in there or restore a backup) and then put another .htaccess file in your phpBB directory this way:

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 the diretory where phpBB is installed and clear the board cache.
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: 427
Joined: Mon May 03, 2010 7:06 am

Re: Facing a problem with phpbb mod install

Postby Thebo » Sat Apr 14, 2012 12:38 pm

Thank you very much it is working now....

Just a little question
In my ACP>> PhpSEO >> PHP SEO Class settings
all the options are set to "No" except two of them are "Yes", should i leave them as they are? what is recommended for me? I use the advanced url rewritting type.


PS: I edited the topic title in case anyone else have the same problem he can find it.
Thebo
 
Posts: 5
Joined: Sat Apr 14, 2012 10:36 am

Re: Facing a problem with phpbb mod install

Postby Stephen26 » Sat Apr 14, 2012 1:26 pm

Thebo wrote:Thank you very much it is working now....

Great!

Thebo wrote:In my ACP>> PhpSEO >> PHP SEO Class settings
all the options are set to "No" except two of them are "Yes", should i leave them as they are? what is recommended for me? I use the advanced url rewritting type.


As in general search engine bots don't see the profile / member pages (or shouldn't) you can leave those rewrite settings to "No". I would activate SID and Highlights Removing + the No duplicate and Zero duplicate (with guest redirect option). The Zero dupe is important to úse if you already have old / dynamic forum URLs indexed in search engines.

A sample robots.txt is provided in the package to make sure no useless content is taken into account by the Search Engines.
Warning :

In case you are migrating from a previous unrewritten phpBB version, wait couple month after you activate the zero duplicate mod before you implement the robots.txt. In such case we want to redirect first and then drop useless content.
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: 427
Joined: Mon May 03, 2010 7:06 am

Re: Phpbb SEO URL wrong redirect and 404 error page problem

Postby Thebo » Sat Apr 14, 2012 3:55 pm

What is the robot.txt please?!
Thebo
 
Posts: 5
Joined: Sat Apr 14, 2012 10:36 am

Re: Phpbb SEO URL wrong redirect and 404 error page problem

Postby Stephen26 » Sat Apr 14, 2012 4:43 pm

The robots.txt file tells search engine bots what they are and are not allowed to crawl. Example: http://www.phpbb-seo.com/robots.txt

http://www.robotstxt.org/robotstxt.html
http://en.wikipedia.org/wiki/Robots_exclusion_standard
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: 427
Joined: Mon May 03, 2010 7:06 am

Re: Phpbb SEO URL wrong redirect and 404 error page problem

Postby ravi » Wed Aug 08, 2012 4:38 pm

Hi @Stephen,

It's so nice help you have provided, actually i am also getting the same problem, and after doing all the things which you have described here still i am getting the problem.

what is happening on my domain root --- i have wordpress and on forums directory i have phpbb,so what is happening when i am clicking on any link which is on pbpbb forum it redirecting in to the root URL for example my forum is in forums directory makeadvice.com/forums/ and when i am clicking on any link for example user link so it is redirecting to makeadvice.com/user and i am getting error that page is not there on the same time if i am editing the URL makeadvice.com/forums/user on that time it's displaying me the right page, i have did the same thing create new .htaccess file and uploaded in to sub directory before this i have laso deleted the .htaccess file form makeadvice.com/forums/phpbb_seo/cache/ and uploaded new .htaccess ( which generated by PHPbb seo )file to makeadvice.com/forums/ directory and in my .htaccess file having
# REWRITE BASE
RewriteBase /

as which you explained upper side but after all i have not got success, please help ..

my domain is http://makeadvice.com/ and forum domain is makeadvice.com/forums/

Thanks
ravi
 
Posts: 2
Joined: Wed Aug 08, 2012 3:54 pm

Re: Phpbb SEO URL wrong redirect and 404 error page problem

Postby ravi » Thu Aug 09, 2012 7:25 pm

HI i am still waiting for your reply please help.....
my site URL is
http://makeadvice.com/forums/

[b]Thanks [/b]
ravi
 
Posts: 2
Joined: Wed Aug 08, 2012 3:54 pm

Re: Phpbb SEO URL wrong redirect and 404 error page problem

Postby Stephen26 » Fri Aug 10, 2012 7:29 pm

I can not reproduce the problem, links seem to work fine on your site / forum.

When using a custom style you need to apply the Prosilver / subsilver2 code changes
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: 427
Joined: Mon May 03, 2010 7:06 am

Re: Phpbb SEO URL wrong redirect and 404 error page problem

Postby Krukosz » Sun Feb 17, 2013 8:32 pm

I Have to refresh this topic. I have exactly the same problem, but the resolve don't work. I have still 404 errors generated by wordpress.

I have wordpress installed in the root directory and in the directory /forum i have phpBB with phpBB SEO.

When i installed phpbb in /phpBB3 directory everything was working fine, but i had to change the location of forum, because /phpBB3 was temporary.
I've changed forum path in ACP, forum is working on new adress, but not the phpBB SEO.

My wordpress .htaccess is the same as few posts above. And i have the second .htaccess in /forum path.

Any ideas ?

EDIT: I was trying to change cookies settings + few times i've uploaded .htaccess and finally it worked as in the resolve from August.
Krukosz
 
Posts: 1
Joined: Sun Feb 17, 2013 8:26 pm

Re: Phpbb SEO URL wrong redirect and 404 error page problem

Postby oasu » Wed Feb 27, 2013 2:13 am

I have this same problem, but unrelated to wordpress... I tried to create another thread but it is currently being overrun with gay pr0n posts and no responses.

Help with this issue would be appreciated....
oasu
 
Posts: 2
Joined: Sun Feb 24, 2013 8:15 pm


Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 14 guests