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 :: php remove numbers from string 
Php :: explode comma php 
Php :: timestamp false in laravel 
Php :: return last insert id in codeigniter 
Php :: brew remove php 
Php :: do_shortcode 
Php :: check if user is on mobile php 
Php :: auto generate password in php 
Php :: php pdo last insert id 
Php :: long text in laravel migration 
Php :: wordpress debug mode enabled 
Php :: php beautify json 
Php :: woocommerce disable zoom on product image 
Php :: storage image not showing in laravel 
Php :: how to use old for select in blade laravel 
Php :: show all terms of a custom taxonomy 
Php :: Delete Query with Where Condition in Codeigniter 
Php :: content-type application/json php 
Php :: serve php file 
Php :: php remove non numeric 
Php :: php artisan db:seed Call to undefined method AppModelsProduct::factory() 
Php :: laravel blade for loop 
Php :: mac use php@7.4 
Php :: php pluck from array of objects 
Php :: Call to undefined function AppHttpControllerscurl_init() 
Php :: php find multiple strings in string 
Php :: laravel make trait command 
Php :: display all errors at once in laravel 
Php :: how to set timezone for iran in laravel 
Php :: laravel dateinterval not found 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =