apache - Godaddy Shared server gives 500 and 404 error while using .htaccess mod_rewrite -


this question has answer here:

getting error on godaddy shared hosting account:

 internal server error - 500  server encountered internal error or misconfiguration , unable complete request.  please contact server administrator , inform them of time error occurred, , might have done may have caused error.  more information error may available in server error log.  apache server @ pp.mywebsite.com port 80 

have these values in .htaccess` file

 rewriteengine on  errordocument 404 http://pp.mywebsite.com/p1/sm/ errordocument 403 http://pp.mywebsite.com/p1/sma/  #rewritecond %{request_filename} !-d #rewritecond %{request_filename}\.php -f #rewriterule .* $0.php  rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewritecond %{request_filename} !-l  rewriterule ^(.+)$ index.php?url=$1 [qsa,l] 

i have made bootstrap , on localhost xampp works fine. throwing error on web-server.

also, when remove line .htaccess

options -indexes 

the first page works fine contains index.php file. bootstrap have done firest element in url should trated class, , 1 method, other arguments.

so when go http://pp.mywebsite.com/p1/sm/admin

i gives me 404 eoor. not sure do. kindly suggest.

edit1: in error-log says: .htaccess: option not allowed here

godaddy has updated apache version apache 2.2, apache 2.4. change has updated/altered how mod_rewrite works. may want review document apache regarding how mod_rewrite updated here more information on updating .htaccess file.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -