Welcome Guest, Not a member yet? Register   Sign In
quick question

so in CI i was able to remove the need of the index.php in my url using .htaccess

for ex. my url is "http://localhost/website_name/html/"
is it possible to remove the "/website_name/html" using .htaccess?

trying to study using .htaccess with no luck yet..

thanks for the help!! Smile

You need to use routes for this. Check the user guide .

Depends if the /website_name/html/ is part of your folder structure. If it is, you will need to have something in your document root's .htaccess to be able to forward those pages to your subfolder. If you have CI in your document root folder, and have website_name controller, then you would routes like:

$route['default_controller'] = 'website_name';

Theme © iAndrew 2016 - Forum software by © MyBB