CodeIgniter Forums
how to add .htaccess file - 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: how to add .htaccess file (/showthread.php?tid=10554)



how to add .htaccess file - El Forum - 08-04-2008

[eluser]johnmiller[/eluser]
hi...

i didn't find .htaccess file in my project folder...

how can i add .htaccess file to my project???

i tried adding it, but i couldn't create a file name starting with a period.

how to do that???


how to add .htaccess file - El Forum - 08-04-2008

[eluser]Chicken's Egg[/eluser]
As far as I remember CI doesn't come with an .htaccess file by default. However you can create one on your one and place it in the same directory as you index.php file. You can find an example in the user guide.

[quote author="johnmiller" date="1217897121"]hi...
i tried adding it, but i couldn't create a file name starting with a period.
[/quote]

Well, if your php-editor can't save a file called .htaccess (which I doubt) you could also switch to notepad in cases of emergency. Smile


how to add .htaccess file - El Forum - 08-04-2008

[eluser]johnmiller[/eluser]
Thanks u...

i tried with that example...

it didn't work for me???

can u tell me, where exactly i should paste .htaccess file???


how to add .htaccess file - El Forum - 08-04-2008

[eluser]Chicken's Egg[/eluser]
Like I said: you should place the .htaccess file in the same directory as your index.php file is located in. By default it is the root of you website.


how to add .htaccess file - El Forum - 08-04-2008

[eluser]johnmiller[/eluser]
okay
thanks...