‚Äč

The .htaccess file

Installing software on a server is recommended directly in the main domain, or subdomain, so that system calls are made from the main address because of the operation of libraries where paths must start from the root directory. If that does not work, then edit the file named .htaccess .

RewriteEngine On
RewriteBase /
RewriteCond% {REQUEST_FILENAME}! -f
RewriteCond% {REQUEST_FILENAME}! -d<
RewriteRule ^ (. *) $ ./index.php?/$1 [L]


On the RewriteBase line, specify the full path to the index.php file relative to the URL . For example, if our script was installed at http://phpbluedragon.eu/test/ then this line should contain the test directory name.

RewriteBase /test/

 





Copyright © 2015-2019 - by Lucas SOS | About the Author | Tags | Blog | Links | Login