mmarif4u Posted February 27, 2007 Share Posted February 27, 2007 Where can i find .htaccess file on my local pc server. Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/ 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 Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/#findComment-195001 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. Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/#findComment-195003 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... Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/#findComment-195004 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) Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/#findComment-195005 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 Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/#findComment-195013 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. Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/#findComment-195015 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. Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/#findComment-195412 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. Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/#findComment-195778 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. Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/#findComment-195906 Share on other sites More sharing options...
mmarif4u Posted February 28, 2007 Author Share Posted February 28, 2007 Thanks TRI0N for suggestion. Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/#findComment-195909 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! Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/#findComment-195917 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. Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/#findComment-195922 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? Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/#findComment-195923 Share on other sites More sharing options...
TRI0N Posted February 28, 2007 Share Posted February 28, 2007 XP SP2 Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/#findComment-195926 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. Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/#findComment-195928 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. Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/#findComment-195934 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. Link to comment https://forums.phpfreaks.com/topic/40310-htaccess-file/#findComment-195935 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.