Tagged Questions
0
votes
0answers
28 views
Wiki URL dropping index.php when cancelling an edit [closed]
What is the best solution to this problem? I click a link on my wiki and it works fine HOST/wiki/index.php/Software_Tools_Department, I choose edit and the url is modified to ...
0
votes
2answers
79 views
Serving index.html from a subdirectory
In my document root, I have to directories: home and foobar, both with their own index.html files.
How can I set it up so that when someone visits my site at example.com, they see the contents on ...
2
votes
1answer
135 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 ...
1
vote
1answer
250 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 ...
3
votes
4answers
2k 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 ...
0
votes
2answers
141 views
error 500 for .htaccess error
I am running a LAMP server, and this .htaccess is giving me a 500 error. What this does is filter keywords and redirect to the respective domain names.
Options +FollowSymLinks
<IfModule ...
0
votes
1answer
174 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
1answer
254 views
Using a .htaccess file to block .htaccess files being loaded to subdirectories
(Centos 5.2, Apache 2.2.8)
How do .htaccess files work when one is in a subdirectory of another?
For example, if I put a .htaccess in /var/www/html/images that only allows access to *.jpeg files, ...
0
votes
2answers
385 views
How to create a share folder for multiple domains on Dreamhost
I have a Virtual Private server with Dreamhost. I'm trying to create a shared folder that all of my domains can access. In the folder I'd like to put PHP classes, and even static files like ...
0
votes
1answer
416 views
How to support multiple domains on one Web server?
I've set up an Ubuntu 10.04 LAMP server. I am going to set up multiple domains so that they will point to this server's IP. How to configure the server so, that it will serve a specific site (placed ...
1
vote
1answer
1k 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: ...
0
votes
2answers
593 views
.htaccess rewrite not getting correct URL
I'm migrating a website from an old server thats being shutdown to a new one, and in the process I'm having some trouble with Apache and mod_rewrite. I have the following .htaccess file:
...
