phpBB3 mod rewrite in Subfolder

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

Moderator: Moderators

phpBB3 mod rewrite in Subfolder

Postby dannygsam » Mon Jul 21, 2008 9:49 am

I have phpbb3 mod rewrite installed in my subdomain.

for example: forum.example.com

Now when I activate url rewrite, it creates urls like this.

Code: Select all
http://forum.example.com/http%3A%2F%2Fexample.com/forum/post-topic-f1.html


When I click on this, I get a disfigured forum home page.

What should I do? I tried multiple options for hours and also cleared the .htaccess and recreated many times. nothing works. Can anyone please help me?

many thanks,
Danny
dannygsam
 
Posts: 11
Joined: Mon Jul 21, 2008 9:40 am

Advertisement

Postby dcz » Mon Jul 21, 2008 12:12 pm

It looks like you did not updated your phpBB config to match the sub domain, the urls buit with our mod will use the configured domain in config, while phpbb still can use the one from the server vars.

So go acp and update you server domain and script path to receptively match "sub.example.com" and "/". Your cookie domain should be ".example.com" (with the dot and without quotes!).

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

Now another issue

Postby dannygsam » Tue Jul 22, 2008 5:23 am

Wow! thanks for the super fast reply DCZ.. I tried some changes before you replied back. They work perfect if I sent the URL like this..

Code: Select all
http://www.example.com/forum/post-1/


But for forum.example.com/post-1/ it gives a page not found error. I also tried the settings that you recommended. Unfortunatly it did not work.

Hence I am going with example.com/forum itself as it works fine and I feel its not that bad too. Now, when I try using features like "Virtual Folder" in "phpBB SEO Class Settings" the rewriting works. However, the page does not display any image or css. Because the image and css path are also converted by phpbb3 mod rewrite.

The path becomes like this:
Code: Select all
http://www.example.com/post-1/styles/prosilver/imageset/site_logo.gif

The post name gets added to the image and css path. Hence the page displays as a text only page.

Can you please guide me? Sorry for all the trouble.
dannygsam
 
Posts: 11
Joined: Mon Jul 21, 2008 9:40 am

this is the actual issue

Postby dannygsam » Tue Jul 22, 2008 6:57 am

this is the actual issue..

When I try using the feature "Virtual Folder" in "phpBB SEO Class Settings" the virtual folder gets added into the path of images and css. How do I remove that?

Code: Select all
http://www.example.com/forum/post-1/styles/prosilver/imageset/site_logo.gif


As in this example where post-1 gets added even into the image and css path in the page -http://www.example.com/forum/post-1/

Because of this none of the images or the css layout does not showup
dannygsam
 
Posts: 11
Joined: Mon Jul 21, 2008 9:40 am

Postby dcz » Tue Jul 22, 2008 12:02 pm

Remember that you need to generate a new .htaccess when you change options that are changing your urls.

Then, about the relative path in the .html code, you just need to apply the required code change for all your installed themes, and then go acp and refresh both theme and template from the style tab.

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

Postby dannygsam » Sat Jul 26, 2008 7:52 pm

hi dcz.. I did the changes u recommended.. the site works fine and URLs are rewritten perfectly if i give

-www.example.com/forum

but it does not work if i try forum.example.com I did all the changes u asked me to do in cookie and server settings. it just gives a 404 error. The url gets changed to forum.example.com/post1.htm etc. but these urls lead to 404 error.. what shoud i do? do i have to update anything after i change server and cache settings?
dannygsam
 
Posts: 11
Joined: Mon Jul 21, 2008 9:40 am

Postby dcz » Sun Jul 27, 2008 7:36 am

So basically, you forum is installed in example.com/forum but you added a sub domain for it forum.example.com.

To make the .htaccess generator to create the proper .htaccess, you must in this case set the forum server domain to forum.example.com and the script path to / or nothing.
The cookie domain must be set to .example.com (with the dot).

Then, the .htaccess should not mention "forum/" anywhere, since it will be meant to be used in the domain's root (which here is a sub domain, phpBB is installed in the sub domain's root) in forum/.

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

Many Thanks

Postby dannygsam » Tue Jul 29, 2008 5:47 am

Hi DCZ!

Many thanks.. it finally worked.. wonderful support.. :P .. U r doin a wonderful job. am installin ur GYM sitemap now..
dannygsam
 
Posts: 11
Joined: Mon Jul 21, 2008 9:40 am

Postby dcz » Tue Jul 29, 2008 7:52 am

;)
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: 21424
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 3 guests