SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard Wolf_22's Avatar
    Join Date
    Jul 2005
    Posts
    1,711
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question dev1 & dev2 on localhost?

    What is the following code doing?
    Code:
    RewriteCond %{HTTP_HOST} ^(www.)?dev1.foobar.com$
    RewriteRule ^(/)?$ projects/foobardev [L]
    RewriteCond %{HTTP_HOST} ^(www.)?dev2.foobar.com$
    RewriteRule ^(/)?$ projects/foobardev [L]

  2. #2
    SitePoint Wizard bronze trophy Jeff Mott's Avatar
    Join Date
    Jul 2009
    Posts
    1,278
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    This reads to me as: if the host is dev1.foobar.com or dev2.foobar.com, then rewrite the root too projects/foobardev.
    "First make it work. Then make it better."


Bookmarks

Posting Permissions

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