• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to add .htaccess file

#1
[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???

#2
[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

#3
[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???

#4
[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.

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.