How to change url path only in some URLS?

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

Moderator: Moderators

How to change url path only in some URLS?

Postby naska » Fri Dec 13, 2013 5:37 pm

I created a social network with a Forum integrated.

The forum is installed in a subdirectory, called /forum.
The profiles have nothing to do with the default phpbb profiles and are displayed through an external file, profile.php which stays in the root.

This is the url of my forum
http://www.racebooking.net/forum
This is the url of a profile
-http://www.racebooking.net/piloti/profilo-92/alberto-naska-fontana.html

(note1: the profile url has a rewriterule which points to -http://www.racebooking.net/profile.php?id=xxx)
(note2: in the online version you can browse, your mod is not installed. I am testing it on a private server)

I would love to have profile URLs in forum to point to profile.php, thus i changed the function set_user_url into phpbb_seo_class.php. Here is the change i've made:
$this->seo_url['user'][$user_id] = "piloti/profilo-92/alberto-naska-fontana.html" (this part is obviously built dynamically)

THE PROBLEM
The problem is the following:
The profile urls are displayed like -http://www.racebooking.net/forum/piloti/profilo-92/alberto-naska-fontana.html
But they need to be -http://www.racebooking.net/piloti/profilo-92/alberto-naska-fontana.html

How can tell your mod not to put /forum ONLY into my profile urls?

Thanks
naska
 
Posts: 1
Joined: Fri Dec 13, 2013 5:21 pm

Advertisement

Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Yahoo [Bot] and 10 guests