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
Post a Comment