rename url

Posted on 2005-04-21
Last Modified: 2008-03-10
i have a rewrite rule

which redirects url   to

can i rename the url    to

so that is someone clicks refresh it should actualy request the page  from server  and not

how do i configure apache for this

Question by:shahrahulb
    LVL 1

    Author Comment

    on the address bar it should show  but the actual page it is displaying should be
    LVL 1

    Author Comment

    to be more precise:

     whenever apache requests anything from /v/

    it should actualy request from there but on the url it should always show

    for example for the file /v/
    the url is

    but on the address bar i want to display

    is this possible

    LVL 14

    Expert Comment

    You are looking for an alias:

    So, your virtualhost file for should have:

    Alias /oos /v/

    Note that you probably want AliasMatch if you want to use regexp to match everything after the first /

    AliasMatch ^/(.*)$ /v/$1
    LVL 1

    Author Comment

    u mean to say, if i write
    Alias /oos /v/

    when i hit the url  it will display  but on the address bar it will show

    LVL 14

    Accepted Solution

    No, that would alias to the internal path /v/, but leave in the address bar. To do the above, you would need:

    Alias / /v/

    This would keep in the address bar and load the local path /v/
    LVL 51

    Assisted Solution

    in httpd.conf of

    RewriteEngine On
    RewiteCond %{REQUEST_URI} ^/oos/outofservice.cgi
    RewirteRule  ^(/oos/outofservice.cgi.*)$1 [P,L]
    LVL 5

    Expert Comment

    by:mrielf and resides on same machine?

    If not, then you must enable proxy module on
    and do redirect to with proxy...

    (in conf file of

    RewriteEngine On
    RewriteRule / [P,L]

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now