Showing posts with label Laravel. Show all posts
Showing posts with label Laravel. Show all posts

Wednesday, November 15, 2017

Remove public from Laravel using htaccess

Remove public from Laravel using htaccess

RewriteEngine On

# Remove all trailing slashes 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} /(.*)/$
RewriteRule ^ /%1 [R=301,L]

RewriteCond %{REQUEST_URI} !(\.css|\.js|\.png|\.jpg|\.gif|robots\.txt)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(css|js|images)/(.*)$ public/$1/$2 [L,NC]


Ionic framework Basics - 1

Ionic framework Basics - 1 1. Install Node.js check node js is installed Goto CMD   > type npm --> to check node js is inst...