|
#1
|
|||
|
|||
|
So I have a small problem I am getting a 500 error with this htaccess and no error if I delete it. For the script to work right it needs this htaccess. Could someone have look at the code a let me know why it doesnt work on hostgator server but fine on others
Code:
# This is a comment because the line starts with the # character. # Disable a line by commenting it. DirectoryIndex index.php Options -Indexes # These might give you an error if PHP is not installed as a module. php_value upload_max_filesize 200M php_value post_max_size 200M php_value short_open_tag 1 # Delete or comment out these lines if you're getting Internal Server error because your server does not have mod_rewrite. RewriteEngine On # For public uploader RewriteRule ^register/?$ account.php?action=register [L,NC] RewriteRule ^login/?$ account.php?action=login [L,NC] RewriteRule ^pupload/?$ public.php [L,NC] RewriteRule ^pupload/browse(/([0-9]+))?/?$ public.php?action=browse&page=$2 [L,NC] RewriteRule ^pupload/view/([0-9]+)/?$ public.php?action=view&upload_id=$1 [L,NC] RewriteRule ^pupload/manage/([0-9]+)/([0-9a-z]+)/?$ public.php?action=manage&upload_id=$1&key=$2 [L,NC] RewriteRule ^myfiles(/(.*))?$ myfiles.php?folder=$1 [L,NC] RewriteRule ^upload(/(.*))?$ upload.php?upload_to=$1 [L,NC] RewriteRule ^members/?$ browse.php [L,NC] RewriteRule ^members/([0-9]+)/?$ browse.php?page=$1 [L,NC] RewriteRule ^members/public/?([0-9]+)?/?$ browse.php?public=1&page=$1 [L,NC] RewriteRule ^members/info/([0-9]+)$ browse.php?action=info&userid=$1 [L,NC] RewriteRule ^members/browse/([0-9]+)/?(/.+)?$ browse.php?action=browse&userid=$1&folder=$2 [L,NC] #RewriteRule ^([a-z0-9\_]+)/?$ browse.php?action=browse&username=$1 [L,NC] |
|
#2
|
|||
|
|||
|
Sorry had over looked this line
Code:
# These might give you an error if PHP is not installed as a module. php_value upload_max_filesize 200M php_value post_max_size 200M php_value short_open_tag 1 Is it possible this can be done or is this something hostgator doesnt support |
|
#3
|
|||
|
|||
|
That's exactly what's breaking .htaccess, php_* directives are deprecated, and PHP isn't compiled as a DSO, thus it will break your config. Just comment them out, and put them in php.ini in your public_html folder, and I will globally symlink it for you, just message me your domain name.
|
|
#4
|
|||
|
|||
|
Were they deprecated in PHP4 or PHP5?
|
|
#5
|
||||
|
||||
|
No, PHP directives do not work in .htaccess because HostGator uses PHPSuExec/SuPHP.
__________________
quietFinn - netFinn Finland "Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss |
|
#6
|
|||
|
|||
|
Ah okay, thanks for the answer. Didn't know that.
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
All times are GMT -6. The time now is 10:03 PM.









