CodeIgniter Forums
Website - Path - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Website - Path (/showthread.php?tid=25300)



Website - Path - El Forum - 12-07-2009

[eluser]WebbHelp[/eluser]
Hi!

Sry, I couldn't find any good title, but I write my question here:

How can I do if I want to that the visitors only will write: http://www.site.com/
To access the page, and I don't want them to write index.php?
Follow question = I want to; when you write the adress to the website, I want that you only need to write the path to the directory like:
http://www.webpage.com/dir then a file will run.

Summery:

That you only need to write http://www.website.com without index.php
AND
If you are writing the path to the website with a dir ex: http://www.website.com/dir then a file will automatically be runned.


Website - Path - El Forum - 12-08-2009

[eluser]rogierb[/eluser]
Take a look at http://codeigniter.com/wiki/mod_rewrite/
and at the ROUTE part in the user guide

That should answer both of your questions.