At this moment, I am accessing my project pages like this and this formatting is working fine:
http://localhost/Seven/index.php/admin_login/login (FOR LOGIN PAGE)
http://localhost/Seven/index.php/secure/admin_news (FOR ADMIN NEWS SECTION)
config.php
$config['base_url'] = 'http://localhost/Seven/';
$config['index_page'] = 'index.php';
At this moment, I’m not using any .htaccess file as I couldn’t access contents of my CSS.
My question
-
How can I remove the “index.php” bit from my URLs, so that I could access my project pages like the following?
http://localhost/Seven/admin_login/login (FOR LOGIN PAGE) http://localhost/Seven/secure/admin_news (FOR ADMIN NEWS SECTION)and all other pages ????
-
I have two user folders in my project root directory (“Seven”) for images and CSS, that is, “images” and “css”. I am using my CSS and images like this:
http://localhost/Seven/images/test-logo.jpgAND
../Seven/css/default.css
When I try to get rid of absolute paths, I fail to access my images and CSS contents on my web pages. How can I deal with this problem?
Open
config/config.php, line 31:Change
to
Then use this
.htaccess(put it to the main root/Seven):