Tagged Questions
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 ...
1
vote
2answers
644 views
Apache2 & .htaccess : Apache ignoring AccessFile
Hi there here is my server configuration:
DEBIAN 32Bits / PHP 5 / Apache
Server version: Apache/2.2.3
- Server built: Mar 22 2008 09:29:10
The AccessFiles :
grep -ni AccessFileName *
...
0
votes
2answers
767 views
application/x-httpd-php opening rather than pages?
For some reason, no matter what page I try to open (.php, .html, .html, etc) my server trys to save it, rather than displaying the page. However, I do get the "It Works!" page for the main domain, ...
0
votes
1answer
15 views
rewrite mod giving internal server error when trying to rewrite links
There is many questions discussing rewrite mod problems i have read them and none solved my unique problem, i already done 3 hour of research to solve it and still stuck.
i want to rewrite links in a ...
3
votes
1answer
2k views
Handler for (null) returned invalid result code 70007 / causing error 500?
I am getting these errors on some pages in my site (php/apache/linux/mysql vps) on intervals and can't seem to find any reproducible scenario :
Handler for (null) returned invalid
result code ...
0
votes
1answer
31 views
Understanding mod_rewrite syntax
When I write in .htaccess this mod_rewrite
RewriteEngine on
RewriteRule ^(.*)\.my_extension$ $1.php
and open url: site.com/index.my_extension this wroks fine, opened index.php
But when I am ...
3
votes
1answer
1k views
Error headers: ap_headers_output_filter() after putting cache header in htaccess file
Receiving error: [debug] mod_headers.c(663): headers: ap_headers_output_filter()
after I included this within the htaccess file:
# 6 DAYS
<FilesMatch ...
-1
votes
0answers
28 views
AddType to htaccess forces download of page source code [closed]
I'm running Nginx and PHP as cgi.
I noticed that, if I add this line "AddType application/x-httpd-php .php .htm .js .xml" to the htaccess file, it will force the browser to download the source code ...
0
votes
0answers
44 views
disable php_value / forbid override htaccess
I'm proposing to my clients a shared environment where they all have their open_basedir jailed directory tree.
This tree is generated dynamically, so I can't use a httpd.conf per directory directive, ...
3
votes
1answer
97 views
.htaccess redirect all extension to php
I recently updated my .htaccess file to hide the .php extension of the urls. It works nice, when I try to reach domain.com/index, it displays the php file.
When I type domain.com/index.php it ...
1
vote
1answer
151 views
Unable to set php_value in .htaccess file
I am trying to set up NewRelic on my Apache2/PHP server, and have it report different applications per vhost. To do this, the php value newrelic.appname must be changed. It is definited by default in ...
0
votes
1answer
60 views
Apache ignoring .htaccess rules and returning 404 not found
I just set up Apache and PHP on a server running CentOS by using something along the lines of yum install httpd and yum install php.
I've created the following file in /etc/httpd/conf.d/vhosts.conf:
...
-1
votes
1answer
61 views
.HTACCESS - remove part of the url
I am using in my cms with a pre-defined htaccess, as the following:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ...
0
votes
1answer
41 views
running .html as .php
How do I edit my .htaccess file using mod_fcgid to turn .html files to act as .php
I tried:
AddHandler fastcgi-script .html
Did not work. I am using cpanel and using php 5.3 and apache 2.2.
1
vote
2answers
3k views
.htaccess Rewrite Rules Not Working (CodeIgniter)
Here's what I want to do: I'm using CodeIgniter, so all URLs are in the form of http://example.com/index.php/controller/function. However, the script I've written is a essentially a glorified link ...