You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by aschoessler <al...@fluxcorp.com> on 2006/08/02 23:35:31 UTC

Removing page/ from the URL of blogs

My current blog's URL looks like this:

http://www.mysite.com/blogs/page/allen

... is there a way to get rid of the page/ part and just have:

http://www.mysite.com/blogs/allen

Roller is installed as /blogs on my Tomcat Application Server.

Thanks !

- Allen Schoessler
-- 
View this message in context: http://www.nabble.com/Removing-page--from-the-URL-of-blogs-tf2042469s12275.html#a5622872
Sent from the Roller - User forum at Nabble.com.


Re: Removing page/ from the URL of blogs

Posted by Allen Gilliland <al...@sun.com>.
or you can just wait until Roller 3.0 comes out because we are redoing 
the urls ...

http://rollerweblogger.org/wiki/Wiki.jsp?page=Proposal_NewUrlStructure

the new weblog urls will all be /<weblog>/*.

-- Allen


Shervin Asgari wrote:
> Yes there is a way. Here is a cut from our work with multi domain 
> support in roller:
> You can get our code here:
> http://users.linpro.no/~kjellm/roller-src-multidomain.tar.bz2
> http://users.linpro.no/~kjellm/roller-patches.tar.bz2
> But remember this is patches for roller 2.1 , and stuff might have 
> changed for the roller version you are using. But it is a good way to 
> start anyways.
> 
> We have chosen to run Roller under /blog/ instead of /roller/, as this is
> easier for the users. The filter filters everything coming to 
> /blog/domain/,
> finds the right website in an association table and forwards the request to
> the normal servlet in the traditional form (/blog/page/handle). In 
> addition it
> creates wrappers for the request and response. The point of the wrappers 
> is to
> override URLs and redirects so the user is not moved back to the main
> Roller-site (The real address for the Roller server). The URLs are written
> back to the /blog/domain/ form, and then re-translated from that form to 
> the
> form seen by the users (http://domain/blog/*) by a URLRewriteFilter. The 
> job
> of translating URLs like http://domain/blog/ to the /blog/domain form is 
> left
> to mod_rewrite in the Apache web server.
> 
> 
> Shervin Asgari -
> 
> 
> aschoessler wrote:
>> My current blog's URL looks like this:
>>
>> http://www.mysite.com/blogs/page/allen
>>
>> ... is there a way to get rid of the page/ part and just have:
>>
>> http://www.mysite.com/blogs/allen
>>
>> Roller is installed as /blogs on my Tomcat Application Server.
>>
>> Thanks !
>>
>> - Allen Schoessler
>>   
> 

Re: Removing page/ from the URL of blogs

Posted by Shervin Asgari <sh...@linpro.no>.
Yes there is a way. Here is a cut from our work with multi domain 
support in roller:
You can get our code here:
http://users.linpro.no/~kjellm/roller-src-multidomain.tar.bz2
http://users.linpro.no/~kjellm/roller-patches.tar.bz2
But remember this is patches for roller 2.1 , and stuff might have 
changed for the roller version you are using. But it is a good way to 
start anyways.

We have chosen to run Roller under /blog/ instead of /roller/, as this is
easier for the users. The filter filters everything coming to /blog/domain/,
finds the right website in an association table and forwards the request to
the normal servlet in the traditional form (/blog/page/handle). In addition it
creates wrappers for the request and response. The point of the wrappers is to
override URLs and redirects so the user is not moved back to the main
Roller-site (The real address for the Roller server). The URLs are written
back to the /blog/domain/ form, and then re-translated from that form to the
form seen by the users (http://domain/blog/*) by a URLRewriteFilter. The job
of translating URLs like http://domain/blog/ to the /blog/domain form is left
to mod_rewrite in the Apache web server.


Shervin Asgari - 



aschoessler wrote:
> My current blog's URL looks like this:
>
> http://www.mysite.com/blogs/page/allen
>
> ... is there a way to get rid of the page/ part and just have:
>
> http://www.mysite.com/blogs/allen
>
> Roller is installed as /blogs on my Tomcat Application Server.
>
> Thanks !
>
> - Allen Schoessler
>