In laravel it's easy to step to run laravel project without using php artisan serve and removing public from url also
Here are the steps to follow.
1. Renaming the server.php to index.php
2. Copy the .htaccess from public folder to root folder (example : admin main folder)
3. Changing .htaccess to add following code:
Here are the steps to follow.
1. Renaming the server.php to index.php
2. Copy the .htaccess from public folder to root folder (example : admin main folder)
3. Changing .htaccess to add following code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
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]
I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article.website development agency
ReplyDelete