.

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

Moderator: Moderators


.

Postby wuitsung » Tue Jan 30, 2007 9:07 am

....
Last edited by wuitsung on Thu Jun 21, 2007 5:08 am, edited 1 time in total.
wuitsung
 
Posts: 15
Joined: Tue Jan 30, 2007 9:03 am

Advertisement

Postby dcz » Tue Jan 30, 2007 12:44 pm

And welcome :D

This issue is the bug it seems with this version, so I apologize for inconvenience, as I never felt on it on all the server tested prior to release.

We'll soon update the mods, but the fix suggested here should work ;)

++
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

Postby wuitsung » Tue Jan 30, 2007 5:56 pm

...
Last edited by wuitsung on Thu Jun 21, 2007 5:09 am, edited 1 time in total.
wuitsung
 
Posts: 15
Joined: Tue Jan 30, 2007 9:03 am

Postby dcz » Tue Jan 30, 2007 8:17 pm

mm.

Please additionally try the following :

find :

Code: Select all
         $this->url = PHPBB_URL . $this->seo_static['index'];



replace with :

Code: Select all
         $this->url = $this->seo_static['index'];



in phpbb_seo/phpbb_seo_class.php

++
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

Postby wuitsung » Tue Jan 30, 2007 8:43 pm

...
Last edited by wuitsung on Thu Jun 21, 2007 5:09 am, edited 2 times in total.
wuitsung
 
Posts: 15
Joined: Tue Jan 30, 2007 9:03 am

Postby dcz » Tue Jan 30, 2007 8:59 pm

Just looks like you did not edit index.php properly, please double check, because, forum links are rewritten everywhere else.

Next step will be Zero dupe, but since you just went through the bug with the PHPBB_URL constant, you'd have to replace all occurrences of :

Code: Select all
PHPBB_URL


with :
Code: Select all
"http://www.utf-88.com/"


int the zero dupe code changes, because the same constant will most likely fail as well there.
The exacter reasons for this are still a bit obscure, but, we'll be releasing a fix for it real soon.

++
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

Postby wuitsung » Tue Jan 30, 2007 10:41 pm

...
Last edited by wuitsung on Thu Jun 21, 2007 5:09 am, edited 1 time in total.
wuitsung
 
Posts: 15
Joined: Tue Jan 30, 2007 9:03 am

Postby wuitsung » Tue Jan 30, 2007 10:48 pm

...
Last edited by wuitsung on Thu Jun 21, 2007 5:09 am, edited 1 time in total.
wuitsung
 
Posts: 15
Joined: Tue Jan 30, 2007 9:03 am

Postby dcz » Tue Jan 30, 2007 10:51 pm

like here -http://www.utf-88.com/movie-drama-tv-f1.html or here -http://www.utf-88.com/topic214.html

forum url are rewritten.

And I think I got it, you've renamed your phpBB index.php file, so forum.php is not rewritten at all with the method.
Just open :

Code: Select all
phpbb_seo/phpbb_seo_class.php


Find :

Code: Select all
   function index() {


Replace with :

Code: Select all
   function forum() {


You'll as well need to change :
Code: Select all
         'index' => ''


with :

Code: Select all
         'index' => 'forum.php'


To keep the forum index as is.

And this should as well solve the portal issue.

You'll have to change as well "index" with "forum" in the zero duplicate code changes in forum.php.


++
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

Postby wuitsung » Tue Jan 30, 2007 11:55 pm

...
Last edited by wuitsung on Thu Jun 21, 2007 5:10 am, edited 1 time in total.
wuitsung
 
Posts: 15
Joined: Tue Jan 30, 2007 9:03 am

Postby wuitsung » Wed Jan 31, 2007 3:19 am

...
Last edited by wuitsung on Thu Jun 21, 2007 5:10 am, edited 1 time in total.
wuitsung
 
Posts: 15
Joined: Tue Jan 30, 2007 9:03 am

Postby dcz » Wed Jan 31, 2007 11:23 am

Code: Select all
# FORUM INDEX (un-comment if used)
RewriteRule ^index\.html$ /index.php [QSA,L]


Is there for if you'd decide to rewrite index.php to index.html, or the be edited if you choose something else for index.php rewrting.

It's left commented as it's not always used.

Code: Select all
# FORUM PROTECTION RULE
RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L]


This one prevent virtual folder injection trick, but is not required if you run the zero dupe.

It will redirect any url like this example.com/phpBB/virtual-folder/topic-title-txx.html

++
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

Postby wuitsung » Wed Jan 31, 2007 6:22 pm

...
Last edited by wuitsung on Thu Jun 21, 2007 5:10 am, edited 1 time in total.
wuitsung
 
Posts: 15
Joined: Tue Jan 30, 2007 9:03 am

Postby dcz » Wed Jan 31, 2007 6:27 pm

Well, you should open forum.php when the install is asking for index.php, that's all. At least if forum.php is just a renamed version of phpBB's index.php.

++
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

Postby wuitsung » Wed Jan 31, 2007 11:02 pm

...
Last edited by wuitsung on Thu Jun 21, 2007 5:10 am, edited 1 time in total.
wuitsung
 
Posts: 15
Joined: Tue Jan 30, 2007 9:03 am

Next

Return to phpBB2 mod Rewrite

Who is online

Users browsing this forum: No registered users and 7 guests