[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    Re: [users@httpd] Re: help to design A writerule.
From:       Eimantas Vaiciunas <eimantas.vaiciunas () sc ! vu ! lt>
Date:       2004-10-29 7:37:58
Message-ID: 200410291037.58319.eimantas.vaiciunas () sc ! vu ! lt
[Download RAW message or body]

On Friday 29 October 2004 10:33, Wang Penghui wrote:
> Thank you for you quick response. And it could work correctly.
> But i am afraid it could not suit my implementation.
> I want to the URL http://mywebserver/A display in the browser instead of
> http://mywebserver/?page_name=A
>
> The visitor no need to type http://mywebserver/A. They could click the
> mouse button to see the pages, and could see a better URL in their
> browsers. In the server. the URL is http://mywebserver/?page_name=A
> while in the client browser the URL is http://mywebserver/A
Well this rewrite does that. It displays mywebserver/A URL in user browser and 
server understands it as if it was mywebserver/?page_name=A. You can try this 
one:
RewriteRule ^(.+) http://mywebserver/$1 [L]

Then everything what is written after '/', i.e. http://mywebserver/foo, gets 
rewriten to http://mywebserver/?page_name=foo

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic