SitePoint Sponsor

User Tag List

Results 1 to 1 of 1
  1. #1
    SitePoint Mentor bronze trophy
    John_Betong's Avatar
    Join Date
    Aug 2005
    Location
    City of Angels
    Posts
    1,843
    Mentioned
    73 Post(s)
    Tagged
    6 Thread(s)

    htaccess conditional for localhost and server

    Is it possible with a .htaccess file to detect if the server is http://localhost and if so to implement a conditional block?

    .htaccess
    PHP Code:

    # if ( server == http://localhost)
    #    RewriteEngine on
    #    RewriteBase /xamp/loca;
    #    DirectoryIndex index.php index.html index.htm research_002.html
    # else 
    #   RewriteEngine on 
    #   RewriteEngine on
    #   RewriteBase /
    #   DirectoryIndex index.php index.html
    # endif 
    Last edited by Force Flow; Apr 14, 2012 at 19:12.
    Learn how to be ready for The New Move to Discourse

    How to make Make Money Now with a *NEW* look

    Be sure to congratulate Patche on earning Member of the Month for July 2014


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
  •