hostname rewrite

Discussion in 'Apache' started by Dird, Jun 16, 2010.

  1. #1
    Hi,

    I'm using Apache with Oracle APEX. Currently links are like http://host:port/pls/apex
    I would like it so that people could enter "http://apexdev" and it points to the apex home page but I've been having trouble getting it to work. I did a search on this forum and created a .htaccess & placed it in the Apache folder (previously I was pasting similar code in httpd.conf) but it doesnt seem to work:
    
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} ^http://apexdev [NC]
    RewriteRule (.*) http://gbates90:7778/pls/apex/f?p=HKADM [R]
    Code (markup):
    When I enter "http://apexdev" I just get page cant be found. Someone see where I'm going wrong? Would me telling .htaccess to always open using notepad affect it? Server is Windows

    Thanks for any help.

    Mike
     
    Dird, Jun 16, 2010 IP
  2. Dird

    Dird Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The page is an intranet page if that makes a difference
     
    Dird, Jun 16, 2010 IP
  3. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #3
    If you use on localhost then it wont work :)
     
    roopajyothi, Jun 17, 2010 IP
  4. Dird

    Dird Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I'm using my computer (the http server is on a different one)....http://apexdev still doesnt work...

    The page cannot be displayed
    ...
    DNS Fail
     
    Dird, Jun 17, 2010 IP