php - Laravel Godady returning 404 on routes -


i use forge apps client insisted on keeping godaddy. hate godaddy, stuck routing issue. home page works buy apis getting 404.

structure

public_html

  ->htaccess   ->index.php   ->css   ->js   ->images   ->laravel/       ->all core stuff 

htaccess:

<ifmodule mod_rewrite.c>     <ifmodule mod_negotiation.c>         options -multiviews     </ifmodule>      rewriteengine on      # redirect trailing slashes if not folder...     rewritecond %{request_filename} !-d     rewriterule ^(.*)/$ /$1 [l,r=301]      # handle front controller...     rewritecond %{request_filename} !-d     rewritecond %{request_filename} !-f     rewriterule ^ index.php [l]      # handle authorization header     rewritecond %{http:authorization} .     rewriterule .* - [e=http_authorization:%{http:authorization}] </ifmodule> 

i know .htaccess thing since laravel structure has changed. know?????

 rewriteengine on     rewritebase /     rewritecond %{http} off      rewritecond %{http_host} !^https://www.example.com$ [nc]     rewriterule ^(.*)$ http://www.example.com/$1 [l,r=301]      rewritecond %{http_host} ^111\.111\.111\.111     rewriterule (.*) http://www.example.com/$1 [r=301,l]      # redirect trailing slashes if not folder...     rewritecond %{request_filename} !-d     rewriterule ^(.*)/$ /$1 [l,r=301]      rewritecond %{http_user_agent} libwww-perl.*      rewriterule .* ? [f,l] 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -