apache - How to do url re-writing for MVC purpose in PHP -


this works fine on localhost:

 #the rewriteengine directive enables or disables runtime rewriting engine. rewriteengine on  #this won't allow folder accessible  if it's not having index.php file options -indexes  #this redirect user http://localhost/awe/ if 404 or 403 error comes errordocument 404 http://192.168.1.6/app/ errordocument 403 http://192.168.1.6/app/  rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewritecond %{request_filename} !-l  rewriterule ^(.+)$ index.php?url=$1 [qsa,l] 

the same gives me error on godaddy.com server : error 500

when remove options -indexes use show me 1st page index.php exists there doesn't show internal pages , shows 404 error because being defined under bootstrap. kindly suggect needs done.

also, have put 1 of subdomain , within 1 folder: path of app this:

http://mysubdomain.mywebsite.com/myprojectname/app 

so .htaccess file putting in folder http://mysubdomain.mywebsite.com/myprojectname/app


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -