redarrow Posted February 26, 2007 Share Posted February 26, 2007 How do you save .htaccess and name them as. This as example deni.htaccess and then the correct folder to it and place it in the image_folder with img files is that correct. <Directory /htdocs/folder/folder/image_folder> AllowOverride None Order Deny,Allow Deny from All </Directory> Link to comment https://forums.phpfreaks.com/topic/40166-htaccess-help-cheers/ Share on other sites More sharing options...
Yesideez Posted February 26, 2007 Share Posted February 26, 2007 If you mean how to save that on your PC then I get around it by downloading an existing one from the server then editing it. Windows is a bit funny when creating or renaming files with no filename, just an extension. Link to comment https://forums.phpfreaks.com/topic/40166-htaccess-help-cheers/#findComment-194324 Share on other sites More sharing options...
redarrow Posted February 26, 2007 Author Share Posted February 26, 2007 Tried what you said and windows wants a (file name) How the hell do we save the .htaccess in windows then what a joke. if there is a program to do this easly then tell me all i am useing is notepad. Link to comment https://forums.phpfreaks.com/topic/40166-htaccess-help-cheers/#findComment-194328 Share on other sites More sharing options...
monk.e.boy Posted February 26, 2007 Share Posted February 26, 2007 go into your apache config file and look for: AccessFileName .htaccess this tells apache to look for a file called '.htaccess' in each directory, on windows just choose a different name for this file and set it in the apache config file. I called my win.htaccess hope that helps monk.e.boy Link to comment https://forums.phpfreaks.com/topic/40166-htaccess-help-cheers/#findComment-194329 Share on other sites More sharing options...
Yesideez Posted February 26, 2007 Share Posted February 26, 2007 As I said, download one (.htaccess) from a server, copy it to where you want to use it then just edit the contents to contain what you want and upload it. Link to comment https://forums.phpfreaks.com/topic/40166-htaccess-help-cheers/#findComment-194331 Share on other sites More sharing options...
monk.e.boy Posted February 26, 2007 Share Posted February 26, 2007 tried what you said and windows wants a (file name) how the hell do we do save the .htaccess in windows then what a joke. if there is a program to do this easly then tell me all i am using is notepad. Save it as poop.htaccess Then rename it in DOS (the command thingy Win->All Programs->Accessories->Command Prompt) monk.e.boy Link to comment https://forums.phpfreaks.com/topic/40166-htaccess-help-cheers/#findComment-194332 Share on other sites More sharing options...
Yesideez Posted February 26, 2007 Share Posted February 26, 2007 tried what you said and windows wants a (file name) how the hell do we do save the .htaccess in windows then what a joke. if there is a program to do this easly then tell me all i am using is notepad. Save it as poop.htaccess Then rename it in DOS (the command thingy Win->All Programs->Accessories->Command Prompt) monk.e.boy What a great idea! Never thought of that!!! Link to comment https://forums.phpfreaks.com/topic/40166-htaccess-help-cheers/#findComment-194333 Share on other sites More sharing options...
monk.e.boy Posted February 26, 2007 Share Posted February 26, 2007 don't forget to call it 'poop.htaccess' because Windows is poop. Ha. monk.e.boy Link to comment https://forums.phpfreaks.com/topic/40166-htaccess-help-cheers/#findComment-194335 Share on other sites More sharing options...
Orio Posted February 26, 2007 Share Posted February 26, 2007 I use notepad++ and it let's you name the file .htaccess Orio. Link to comment https://forums.phpfreaks.com/topic/40166-htaccess-help-cheers/#findComment-194337 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.