Jump to content

htaccess help cheers


redarrow

Recommended Posts

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.