mmarif4u Posted February 27, 2007 Share Posted February 27, 2007 Where can i find .htaccess file on my local pc server. Quote Link to comment Share on other sites More sharing options...
fert Posted February 27, 2007 Share Posted February 27, 2007 by default I don't think apache creates a .htaccess file Quote Link to comment Share on other sites More sharing options...
mmarif4u Posted February 27, 2007 Author Share Posted February 27, 2007 Thanks for reply, Do u have some idea how to create this file. Quote Link to comment Share on other sites More sharing options...
TRI0N Posted February 27, 2007 Share Posted February 27, 2007 Any text editor will do.. If you using windows us wordpad and save as a text file and not Rich Text file.. Simply click in the dir that you want it and right click > New > Text Document Thats it... Quote Link to comment Share on other sites More sharing options...
mmarif4u Posted February 27, 2007 Author Share Posted February 27, 2007 Where to save this file(in apache which dir). The extension will be textfile then what will be the name.(htaccess.txt or what) Quote Link to comment Share on other sites More sharing options...
pkirsch Posted February 27, 2007 Share Posted February 27, 2007 I suggest you use an editor like "Notepad ++"! Considering that the default windows note pad wont let you make files with the name ".htaccess"! --------------------------------------------------------- You can get it here! http://notepad-plus.sourceforge.net/uk/site.htm --------------------------------------------------------- If you get it; 1. Open Notepad++ 2. insert whatever you need 3. save as .htaccess --------------------------------------------------------- Sorry i don't know where to put it on your local computer but i hope this helps! pkirsch --------------------------------------------------------- P.s I've found a cool little freeware utility for creating (all the basic features of an .htaccess file!) http://www.download.com/HTAccessible/3000-2181_4-10401124.html Quote Link to comment Share on other sites More sharing options...
TRI0N Posted February 27, 2007 Share Posted February 27, 2007 Rename the file so that its just .htaccess and since you said apache then place the file in the subdir called htdocs. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 27, 2007 Share Posted February 27, 2007 .htaccess files goes in the same folder as where you upload/place your website files to. you do not provide a file name when creating an .htaccess file, it is just ".htaccess" (minus the quotes). To create a .htaccess file open notepad and go to file > save as Then type .htaccess in the file name box and set the file type to All files. Click save. the .htaccess file is now created. Quote Link to comment Share on other sites More sharing options...
mmarif4u Posted February 28, 2007 Author Share Posted February 28, 2007 Thanks guys for ur reply and help. Quote Link to comment Share on other sites More sharing options...
TRI0N Posted February 28, 2007 Share Posted February 28, 2007 you do not provide a file name when creating an .htaccess file, it is just ".htaccess" (minus the quotes). To create a .htaccess file open notepad and go to file > save as Just so you know if you open notepad (though I still perfer wordpad) and click save with quotes ".htaccess" it creates the file with no added mumbo jumbo as .htaccess. Quote Link to comment Share on other sites More sharing options...
mmarif4u Posted February 28, 2007 Author Share Posted February 28, 2007 Thanks TRI0N for suggestion. Quote Link to comment Share on other sites More sharing options...
Yesideez Posted February 28, 2007 Share Posted February 28, 2007 I take it you're making your site in a folder on your PC? Follow these instructions... 1. Open "Notepad" and save "my.htaccess" to where your web site is on your PC 2. Using your FTP program, upload it to the server (usually public_html) 3. Rename the file on the server from "my.htaccess" to ".htaccess" 4. Download ".htaccess" to where "my.htaccess" is located 5. Delete "my.htaccess" from your PC You should now have only ".htaccess" one on your PC and one on the server. Windows really doesn't like letting you create files without a filename and only a file extension but when downloading files you can break this silly limitation. Now you've downloaded your ".htaccess" file from the server after renaming it there you can happily edit it like any other file just don't rename it! Have fun! Quote Link to comment Share on other sites More sharing options...
TRI0N Posted February 28, 2007 Share Posted February 28, 2007 Okay let me say again that if your type with quotes ".htaccess" you will force notepad to save the file as is inside the quotes .htaccess eliminating a lot of uneeded steps. Quote Link to comment Share on other sites More sharing options...
Yesideez Posted February 28, 2007 Share Posted February 28, 2007 TRION, which version of Windows are you using? Quote Link to comment Share on other sites More sharing options...
TRI0N Posted February 28, 2007 Share Posted February 28, 2007 XP SP2 Quote Link to comment Share on other sites More sharing options...
Yesideez Posted February 28, 2007 Share Posted February 28, 2007 XP SP2 The default setting for Windows is that it HIDES the file extensions for files. This is to "help protect" users from changing the file extension. Many (including me) turn this off. Example, it prevents people changing a file extension from ".mp3" to something like ".txt" which would then render the file useless unless it was renamed back. Control Panel>Folder Options>View(tab)>Hide extensions for known file types (untick) As I say before, follow the steps above because Windows will not let users create files without filenames. If you have the above option ticked then you'll really be creating a file called ".htaccess.txt" although it'll show as ".htaccess" on your computer. Quote Link to comment Share on other sites More sharing options...
mmarif4u Posted February 28, 2007 Author Share Posted February 28, 2007 Thanks guys i make it, and working fine. Quote Link to comment Share on other sites More sharing options...
Yesideez Posted February 28, 2007 Share Posted February 28, 2007 Thanks guys i make it, and working fine. Glad you managed it. How did you do it? Posting the solution helps others to learn how it was done successfully. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.