Hi
My project is http://localhost/project
and I would like to have the name of the project in production url
How can I make this work ?
.htaccess
config.php
This configuration doesn't works.
Any idea ? is it possible ?
Why a configuration like this ? Because I have some javascript files like list:
who's works fine in local but can't works in prod because the name of project is not in the url...
My project is http://localhost/project
and I would like to have the name of the project in production url
How can I make this work ?
.htaccess
Code:
RewriteEngine On
RewriteBase /project/config.php
PHP Code:
$config['base_url'] = 'http://localhost/project/';
This configuration doesn't works.
Any idea ? is it possible ?
Why a configuration like this ? Because I have some javascript files like list:
Code:
// Définition des variables selon la page
var pathArray = window.location.pathname.split( '/' );
var uri_1 = pathArray[2];