phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
phpBB3 mod rewrite in Subfolder

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite
::  
Author Message
dannygsam



Joined: 21 Jul 2008
Posts: 11

phpBB3 mod rewrite in SubfolderPosted: Mon Jul 21, 2008 9:49 am    Post subject: phpBB3 mod rewrite in Subfolder

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:
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
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

phpBB3 mod rewrite in SubfolderPosted: Mon Jul 21, 2008 12:12 pm    Post subject: Re: phpBB3 mod rewrite in Subfolder

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 || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
dannygsam



Joined: 21 Jul 2008
Posts: 11

phpBB3 mod rewrite in SubfolderPosted: Tue Jul 22, 2008 5:23 am    Post subject: Now another issue

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:
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:
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.
Back to top
dannygsam



Joined: 21 Jul 2008
Posts: 11

phpBB3 mod rewrite in SubfolderPosted: Tue Jul 22, 2008 6:57 am    Post subject: this is the actual issue

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:
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
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

phpBB3 mod rewrite in SubfolderPosted: Tue Jul 22, 2008 12:02 pm    Post subject: Re: phpBB3 mod rewrite in Subfolder

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 || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
dannygsam



Joined: 21 Jul 2008
Posts: 11

phpBB3 mod rewrite in SubfolderPosted: Sat Jul 26, 2008 7:52 pm    Post subject: Re: phpBB3 mod rewrite in Subfolder

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?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

phpBB3 mod rewrite in SubfolderPosted: Sun Jul 27, 2008 7:36 am    Post subject: Re: phpBB3 mod rewrite in Subfolder

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 || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
dannygsam



Joined: 21 Jul 2008
Posts: 11

phpBB3 mod rewrite in SubfolderPosted: Tue Jul 29, 2008 5:47 am    Post subject: Many Thanks

Hi DCZ!

Many thanks.. it finally worked.. wonderful support.. Razz .. U r doin a wonderful job. am installin ur GYM sitemap now..
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

phpBB3 mod rewrite in SubfolderPosted: Tue Jul 29, 2008 7:52 am    Post subject: Re: phpBB3 mod rewrite in Subfolder

Wink

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: