|
|||||||
| General Discussion and support for your general issues associated with web design. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
htaccess problem
Hi,
I am using the following htaccess file and it works fine when I run it local on my machine but when I change it to production (put a # on the line under and and remove it from line under production) and upload it to my hosting server it fails with error 500 Any ideaS? Code:
# Set a new php timeout for XMLFeed
php_value max_execution_time 800
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} ^$
# Dev
#RewriteCond %{HTTP_HOST}/websites/livesite/index.php ^(1)27\.0\.0\.1(/websites/livesite/index\.php)$ [NC,OR]
# Pre Production
#RewriteCond %{HTTP_HOST}/index.php ^(www\.)?example\.com(/index\.php)$ [NC]
# Production
RewriteCond %{HTTP_HOST}/index.php ^(www\.)livesite\.co.uk(/index\.php)$ [NC]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule !^.+\.(gif|jpe?g|png|css|js)$ %2 [QSA,L]
#AuthType basic
#AuthUserFile ".htpasswd"
#AuthGroupFile /dev/null
#AuthName "Secure directory"
#Require valid-user
k0r54 Last edited by k0r54; 11-03-2009 at 01:21 PM. |
|
#2
|
|||
|
|||
|
Hey,
I have found out that my host is running php in cgi mode and not apache. Does anyone know how to get this to work in cgi mode? |
|
#3
|
|||
|
|||
|
solved - wasn't a htaccess file problem. It was down to php5 hiding my errors.
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|