All Questions
6
questions
0
votes
0
answers
54
views
URL routing for domains
I have a site with 10's of thousands of users. Each user has their own site hosted by me at a subdomain of mysite.com/user1 or as an add on domain at user1.mysite.com or user1.com. This is all done ...
2
votes
1
answer
985
views
.php files see Apache environment variables, .html files don't
Consider this environment:
$ cat .htaccess
AddType application/x-httpd-php .php .html
SetEnv Foo Bar
$ cat test.php
<?php
echo "Hello: ";
echo $_SERVER['Foo'];
echo $_ENV['Foo'];
echo getenv('Foo'...
1
vote
1
answer
2k
views
Parsing .html as PHP: how to check which method would be right?
The usual way of parsing .html files as PHP is to add either the first (PHP as an Apache module) or both (PHP as CGI) of the following lines to an .htaccess file:
AddType application/x-httpd-php ....
13
votes
4
answers
23k
views
.htaccess RewriteCond for REMOTE_ADDR while behind Load Balancer?
I have a web server behind a load-balancer.
I need to add a conditional redirect to my .htaccess in order to display a maintenance page whenever we take the site offline for maintenance. This part is ...
1
vote
2
answers
316
views
Using ModRewrite to direct subdomains appropriately fails on MediaTemple
I am familiar with modifying .htaccess files but my initial attempts to do so continue to fail.
Ultimately, I want to point users to 'imaginary' subdomains (those which do not exist) so that the ...
1
vote
1
answer
5k
views
Local .htaccess strangely allowed running PHP in CGI/FastCGI mode in Apache under shared hosting environment
I am using a shared web hosting service. Running phpinfo, I can see the Server API shows CGI/FastCGI rather than Apache 2 Handler.
In this article: http://docs.joomla.org/...