HighDots Forums  

Help with .htaccess

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Help with .htaccess in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
DigitalMirrors
 
Posts: n/a

Default Help with .htaccess - 01-05-2008 , 03:41 PM






Can anyone tell me how I would hide .htaccess files within Dreamweaver.

My local and remote .htaccess files need to be different for a site I am
working, on so I would like to hide the .htacess files so that I do not
accidentally upload my local .htaccess to my remote site.

I'm working on Dreamweaver 8 on a Mac using OS X 10.4

Thanks


Reply With Quote
  #2  
Old   
bregent
 
Posts: n/a

Default Re: Help with .htaccess - 01-05-2008 , 03:52 PM






Have you tried cloaking? I'm not sure it would work with .htaccess but it's worth a shot.

Reply With Quote
  #3  
Old   
DigitalMirrors
 
Posts: n/a

Default Re: Help with .htaccess - 01-05-2008 , 04:14 PM



Unfortunately, no cloaking might exclude it from site operations, but I still
see it. Normally I'm careful about what I copy up to the remote server, but I
work really late into the night sometimes and worry that I could accidentally
upload it.


Reply With Quote
  #4  
Old   
Dave Buchholz
 
Posts: n/a

Default Re: Help with .htaccess - 01-05-2008 , 05:48 PM



"DigitalMirrors" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Unfortunately, no cloaking might exclude it from site operations, but I
still
see it. Normally I'm careful about what I copy up to the remote server,
but I
work really late into the night sometimes and worry that I could
accidentally
upload it.


Under cloaking put a tick in the box Cloak files ending with and add
..htaccess to the list, works for me on a MBP/Tiger/DW8

--
Dave Buchholz
I-CRE8
www.i-cre8.co.uk
Skype ID: I-CRE8



Reply With Quote
  #5  
Old   
DigitalMirrors
 
Posts: n/a

Default Re: Help with .htaccess - 01-05-2008 , 06:06 PM



I've tried that, but the file is still visible which means I could accidentally
upload it if I grabbed a group of files and uploaded.

I'm really looking for a way to stop it from being possible for me to upload
this file. I can't just delete it though because I need it for local testing.


Reply With Quote
  #6  
Old   
P@tty Ayers ~ACE
 
Posts: n/a

Default Re: Help with .htaccess - 01-05-2008 , 11:36 PM




"DigitalMirrors" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I've tried that, but the file is still visible which means I could
accidentally
upload it if I grabbed a group of files and uploaded.

I'm really looking for a way to stop it from being possible for me to
upload
this file. I can't just delete it though because I need it for local
testing.
Do you at least have a current backup of the .htaccess file on the server?

--
Patty Ayers | Adobe Community Expert
www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate Worksheet
--





Reply With Quote
  #7  
Old   
DigitalMirrors
 
Posts: n/a

Default Re: Help with .htaccess - 01-06-2008 , 12:12 AM



yes, I definitely am keeping backups.

Reply With Quote
  #8  
Old   
pauljmartinez_sf
 
Posts: n/a

Default Re: Help with .htaccess - 01-06-2008 , 03:21 AM



This is a really good question and although I don't think I have the answer
you're looking for, I do have a few thoughts on the subject. These are just
ideas off the top of my head as I have not 'solved' this for my own web
development environments..

As far as I know Dreamweaver does not have a standard ability to hide certain
types of files from you in the way you have described.

[hr]
I think that enabling cloaking and cloaking '.htaccess' files is the cleanest,
most DW way to handle the problem. Sure, you might manually upload the file,
but if you're doing your day-to-day work in a DW-like fashion this is a low
probability issue, especially since you are keeping backups of the server side
..htaccess file.

[hr]
You could reconfigure Apache to use standard .htaccess files for the live
environment and use .htaccess-local files for your development environment by
modifying your local httpd.conf file with something similar to this.
AccessFileName .htaccess-local

This Apache configuration command is available in Apache 1.3 and 2 and will
already be protected from prying eyes, in the case of accidental upload, by the
standard <FilesMatch "^\.ht"> rule in your httpd.conf file.

[hr]
You could also try moving the rules from your development .htaccess files into
your main httpd.conf file and using 'AllowOverride None' in the development
environment as well. This way you can keep the .htaccess file in your local DW
tree, have it fall under your existing backup structure/revision control
scheme, and not have a special case to worry about.

[hr]
Another thought, and I'm not actually recommeding this as I have not tried it,
would be to use a single .htaccess file for both environments and use separate
Directory containers for each set of rules. I rarely have the same filesystem
path being used on both the development and live servers. If you have
different filesystem paths you might be able to use Directory container to
server one set of rules for development and another for live.

<Directory /path/to/development/site/files>
Options Includes
</Directory>

<Directory /path/to/live/site/files>
Options Indexes
</Directory>



Reply With Quote
  #9  
Old   
DigitalMirrors
 
Posts: n/a

Default Re: Help with .htaccess - 01-07-2008 , 01:06 AM



I will have to consider some of the things you have suggested the .htaccess-local in particular sounds very interesting.

thank you to everyone for you suggestions

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.