www.webdeveloper.com
Results 1 to 2 of 2

Thread: mod_rewrite help

  1. #1
    Join Date
    Jun 2006
    Posts
    66

    mod_rewrite help

    I need some help with a mod rewrite.

    I have a web application up and running on a subdomain (http://foo.bar.com)

    I want to be able to access this application from a directory on the root domain. (http://www.bar.com/foo).

    I see how you can do the reverse of this, but I can't get it to work. I don't want to redirect it, I want the site (http://foo.bar.com) to be accessible through both domains.

    How can I get this done with mod_rewrite?

  2. #2
    Join Date
    Jun 2003
    Location
    here
    Posts
    4,551
    You will have to redirect it, just use what is called a transparent redirect, the user never has to know that the url was redirected server side.

    Just drop the [R] or [R=...] from the redirect line.
    If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
    The same applies to HTML and the forums [HTML][/HTML] tags.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles