Search Results

Search found 2 results on 1 pages for 'user293479'.

Page 1/1 | 1 

  • mod_rewrite > /user/tag1/tag2/tag..?page=1

    - by user293479
    I am trying to use mod_rewrite to pretty up a URL. I want the URL to look like this: http://example.com/bart/school?page=2 and the rewritten URL to be: http://localhost:8080/app?user=bart&tag1=school&page=2 If possible, I would also like to be able to have more than one tag per user: http://example.com/bart/school/lisa?page=2 Would look like: http://localhost:8080/app?user=bart&tag1=school&tag2=lisa&page=2 I far as I can tell this is possible by using mod_rewrite but I can't seem to figure it out. Any help would be really appreciated!

    Read the article

  • Apache/mod_rewrite > Tomcat encoding %26 and "&"...

    - by user293479
    Apache is the front-end to my web app then I use mod_rewrite to proxy the request to JBoss. So far this sounds pretty standard, but the problem I am having is: if I access the app directly through jboss @ http://localhost:8080/app/page?raw=foo%26bar&page=1: request.getParameter("raw") = foo&bar If I access the app through Apache @ http://localhost/foo%26bar&page=1 request.getParameter("raw") = foo So somewhere along the way, the %26 is lost and replaced with an & which chops the raw variable. This is my Apache rewrite rule. RewriteRule ^/(.*) \ http://localhost:8080/app/home?raw=$1 [L,P] The Apache access log shows: http://localhost/foo%26bar&page=1 And the rewrite log shows: http://localhost:8080/app/home?raw=foo&bar&page=1 But I want the request to be: http://localhost:8080/app/home?raw=foo%26bar&page=1 I am pretty sure that this also occurs with slashes / too so to me this is some sort of encoding issue. Is there a way to proxy the URL untouched? Can't seem to figure this one out.

    Read the article

1