Forum Moderators: phranque

Message Too Old, No Replies

Point all .htaccess files to those under another virtual host

         

cschults

7:59 pm on Mar 5, 2012 (gmt 0)

10+ Year Member



I'm working on a mobile version of my website, which is a separate virtual host on the same server as the main/desktop site.

These two sites have the same file structure and will share some assets, such as images and include files. For these, I've created symbolic links within the mobile site that link to the desktop site.

I know I can do the same for .htaccess files, but is there a RewriteRule or other directive that would point all requests for .htaccess files on the mobile site to the ones on the desktop site?

g1smd

8:55 pm on Mar 5, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



RewriteRules deal with HTTP requests.

The browser doesn't request the htaccess file, it's a configuration file used by the server software itself.

cschults

9:20 pm on Mar 5, 2012 (gmt 0)

10+ Year Member



Thanks for confirming g1smd, that is what I thought.