Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel project htaccess redirect to public path

//In your Root directory create a file .htaccess and write it

RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]


Comment

redirect all request to public folder laravel htaccess

RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
Comment

PREVIOUS NEXT
Code Example
Php :: check if date between two dates laravel eloquent 
Php :: php truncate string 
Php :: laravel latest() 
Php :: yii2 sql query 
Php :: php date strtotime add days 
Php :: doument root phpp 
Php :: php get string before character 
Php :: php default timezone 
Php :: get contents of a tmp file php 
Php :: how to add properties to the request object 
Php :: laravel enum migration 
Php :: Find out how many years there are in php between years 
Php :: new line in php 
Php :: brew install php with specific version 
Php :: php configuration 
Php :: php code to hide plugin update for wordpress 
Php :: php remove last character from string 
Php :: php 301 redirect 
Php :: laravel carbon create date from string 
Php :: remove slashes from json php 
Php :: how make exception laravel if operation does not work 
Php :: php qatorni teskari aylantirish 
Php :: integer division in php 
Php :: Error: Call to a member function getClientOriginalName() on null in file /usr/local/var/www/murabaha_backend/app/Http/Controllers/Traits/MediaUploadingTrait.php 
Php :: get current route laravel 
Php :: laravel pass parameter to resource collection 
Php :: file get content using call api in php 
Php :: laravel nova create user 
Php :: I cannot login to my CPanel hosted Laravel Application, my SSL has expired 
Php :: wp get post thumbnail 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =