Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Simple enough, just stick something along the following lines in either a <strong>.htaccess</strong> file in the document-root directory of your sites (not that efficient as Apache will read and parse the file on every request, also assumes directory <strong>Includes</strong> have been permitted in the <strong>httpd.conf</strong> for your sites document root), or preferably in the <strong>Virtualhost</strong> definition within your Apache's <strong>httpd.conf</strong>, or associated included <strong>.conf</strong> :</p> <pre><code>RewriteEngine On RewriteCond %{HTTP_HOST) ^peku33\.net$ [NC] RewriteRule ^/?SomeOTHERText/ SomeSite.php [L] RewriteCond %{HTTP_HOST) ^mysite [NC] RewriteRule ^/?SomethingElse/ SomeOtherSite.php [L] RewriteCond %{HTTP_HOST) ^mysubdomaint [NC] RewriteRule ^/?Blablabla/Blabla/ SomeotherSiteEtc.php [L] #Attempt to block direct requests to a .php script, only internally rewritten requests should get through RewriteCond %{THE_REQUEST} SomeSite\.php [NC] RewriteRule ^/?SomeSite.php - [F,NC] </code></pre> <p>Note:</p> <pre><code>F = Fail (Could use G=Gone or R=### instead) NC = Not Case-sensitive L = Last ^/? = optional leading slash, best to leave in place, as the leading slash is stripped from the URI, when the rule is .htaccess based. </code></pre> <p>The Apache <a href="http://httpd.apache.org/docs/current/mod/mod_rewrite.html" rel="nofollow">mod_rewrite</a> documentation is worth a read if your unclear as to what the above rules do, or if you want something a little more abstract consider the following <a href="http://www.experts-exchange.com/A_4043.html" rel="nofollow">post</a>. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload