Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel app not loading on server

This is because of your server settings, just copy the .htaccess 
from the /public directory to your root directory and edit like so
  
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
Comment

PREVIOUS NEXT
Code Example
Php :: How can I share limits across multiple fields gravity forms? 
Php :: laravel permit only some inputs 
Php :: laravel Why using additive paramerer in Resource collection raised error 
Php :: how to get data from two tables in laravel 
Php :: time debug php 
Php :: print select sql result in php 
Php :: how to set selected value in dropdown using php 
Php :: to redo number_format php 
Php :: voirs les cles etrangeres phpmyadmin 
Php :: wp ajax error handling 
Php :: amazon linux 2 php.ini changes not working 
Php :: progressive variable php 
Php :: Argument #1 ($baseObject) must be of type DateTimeInterface, string given 
Php :: php select disable submit no value 
Php :: how get database structure in laravel 
Php :: php random number routing 
Php :: php browser cache clear 
Php :: acf directions map link 
Php :: failed to delete data in mysqli using php 
Php :: CURLAUTH_BEARER cannot find 
Php :: command line that convert html to php file 
Php :: he PHP exec() function must be enabled. 
Php :: laravel model retrieve 
Php :: run drush command from php 
Php :: ajax php example 
Php :: php order array by specific key 
Php :: php associative array 
Php :: how to store array in variable php 
Php :: Turn error log WP 
Php :: crrate model in laravel 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =