www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > General

    General Discussion and support for your general issues associated with web design.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 11-03-2009, 01:14 PM
    k0r54 k0r54 is offline
    CSS,PHP enthusiast
     
    Join Date: Jun 2004
    Posts: 1,239
    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
    Thanks
    k0r54

    Last edited by k0r54; 11-03-2009 at 01:21 PM.
    Reply With Quote
      #2  
    Old 11-03-2009, 06:28 PM
    k0r54 k0r54 is offline
    CSS,PHP enthusiast
     
    Join Date: Jun 2004
    Posts: 1,239
    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?
    Reply With Quote
      #3  
    Old 11-03-2009, 06:42 PM
    k0r54 k0r54 is offline
    CSS,PHP enthusiast
     
    Join Date: Jun 2004
    Posts: 1,239
    solved - wasn't a htaccess file problem. It was down to php5 hiding my errors.
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 06:47 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.