Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

New answers tagged

0

You need the .htaccess file in the document root in order to rewrite a request of the form /area/somethingelse.php to the /pages subdirectory in the root (ie. /pages/area/somethingelse.php) before the .htaccess file in the subdirectory (ie. /pages/area/.htaccess) is able to rewrite the request a second time to /pages/area/pages/somethingelse.php - the ...


1

To externally redirect the request from /product-configurator (I assume the missing u was a typo?) to /bikes-configurator when the HTTP Referer contains bikes=1 in the query string part of the URL then you could do something like the following using mod_rewrite near the top of your .htaccess in the document root: RewriteEngine On RewriteCond %{HTTP_REFERER}...


1

htdocs is usually usually the document root for your main domain example.com. I'm assuming that you mis-typed your example and that it is actually example.com/sd that gives you the same result as the subdomain. It is not advisable to create sub-directories of that to house sub-domains. Instead you should use a completely different document root. For ...


0

You might better to create "Symlink" of the www folder from any place, without any need to change WAMP config.


1

At the end, ProxyMatch is the way to do it. <ProxyMatch "/cs/interni" > Order Deny,Allow Deny from all Allow from XXX.XXX.XXX.XXX </ProxyMatch> Thanks to all.


1

It should be as simple as: <Location "/cs/intranet"> require ip XXX.XXX.XXX.XXX </Location> The Upgrading to 2.4 from 2.2 - Apache HTTP Server Version 2.4 document gives a similar example of upgrading from: Order Deny,Allow Deny from all Allow from example.org to: Require host example.org because the default under 2.4 if it doesn't meet ...


1

If you've followed "Method I" on the WordPress help page you link to then you shouldn't actually need to do anything else. Your legacy folders are already excluded. The solution they give is (.htaccess in the root directory): <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?example.com$ RewriteCond %{REQUEST_URI} !^/...


Top 50 recent answers are included