| :: |
| Author |
Message |
dannygsam
Joined: 21 Jul 2008 Posts: 11
|
Posted: 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

Joined: 28 Apr 2006 Posts: 15242
|
Posted: 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 |
|
 |
dannygsam
Joined: 21 Jul 2008 Posts: 11
|
Posted: 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
|
Posted: 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

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
dannygsam
Joined: 21 Jul 2008 Posts: 11
|
Posted: 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

Joined: 28 Apr 2006 Posts: 15242
|
Posted: 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 |
|
 |
dannygsam
Joined: 21 Jul 2008 Posts: 11
|
Posted: Tue Jul 29, 2008 5:47 am Post subject: Many Thanks |
|
|
Hi DCZ!
Many thanks.. it finally worked.. wonderful support.. .. U r doin a wonderful job. am installin ur GYM sitemap now.. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
|
|