Search
 
SCRIPT & CODE EXAMPLE
 

PHP

use htaccess to redirect in cpanel laravel

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteCond %{REQUEST_URI} !project/public/
RewriteRule (.*) /project/public/$1 [L]
Comment

use htaccess to redirect in cpanel lsrsvel

DirectoryIndex index.php

RewriteEngine On 
RewriteRule ^$ public/index.php [L]
RewriteRule ^((?!public/).*)$ public/$1 [L,NC]
Comment

PREVIOUS NEXT
Code Example
Php :: login with email or username codeigniter 4 
Php :: how to re assign value of associative array after assign in php 
Php :: Laravel unique Validation with multiple input field 
Php :: octobercms mail 
Php :: php warning array to string conversion 
Php :: test in laravel 
Php :: get HTML select value to PHP 
Php :: php How to remove from a multidimensional array all duplicate elements including the original 
Php :: eloquent search ignore case 
Php :: php echo example 
Php :: laravel collection find 
Php :: laravel get last created id 
Php :: Laravel artisan command to create model plus migration 
Php :: laravel get route 
Php :: magento 2 laravel valet 502 bad gateway 
Php :: laravel log query for model (full) 
Php :: unset method 
Php :: cakephp sql query 
Php :: php check string 
Php :: send data with window.location.href 
Php :: php check new month 
Php :: laravel where json array column 
Php :: laravel all 
Php :: laravel create get id 
Php :: socket io laravel 
Php :: route list laravel 8 
Php :: create seed file from db laravel 
Php :: how to catch duplicate entry to database in laravel 
Php :: get current date from year input php 
Php :: php loop object keys 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =