Welcome Guest, Not a member yet? Register   Sign In
Problems with www-subdomain and index.php
#1

[eluser]Kenneth Dreyer[/eluser]
Hi
I’m working with CI for the first time and I’m very impressed so far. However, there are two problems that bug the hell out of me which I can’t seem to figure out. Have a look at my site:

http://www.dreyermedia.no

Now try to remove the www subdomain:

http://dreyermedia.no

For some reason the title disappears. I have absolutely no idea why it does that.

Now the second problem is removing the /index.php/. I’ve searched the forums and tried pretty much every version of the htaccess file have been mentioned on the boards. Still no luck. It just keeps giving me a 404 when I try removing the index.php part from the url. Have a look:

http://www.dreyermedia.no/index.php/tjenester/ - Working
http://www.dreyermedia.no/tjenester/ - Not working

Any ideas anyone?
#2

[eluser]Kenneth Dreyer[/eluser]
Doing a bump in a hope that someone can help me out a bit!
#3

[eluser]reaktivo[/eluser]
The first problem is because when a user goes into http://dreyermedia.no, the page is actually a full frame that uses www.dreyermedia.no's content. I suppose this is a setting you can change on your hosting provider control panel.

For the second problem, maybe you did not set the index_page config file to blank in config.php. Inside your application > config folder, look for config.php then look for this line:

$config['index_page'] = "index.php";

change it to:

$config['index_page'] = "";

Also it could be that your hosting provider does not support htaccess files
#4

[eluser]Kenneth Dreyer[/eluser]
Worked like a charm! Thank you..




Theme © iAndrew 2016 - Forum software by © MyBB