Welcome to WebmasterWorld Guest from 54.144.124.152

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Possible to make a global rewritecond?

     

ziekke

11:50 am on Apr 9, 2004 (gmt 0)

10+ Year Member



I have several vhosts and I want to apply one or more sets of rewrite rules to them all. Is there any way to do that aside from putting the rewrite rules in each separate <VirtualHost>?

dcrombie

2:35 pm on Apr 9, 2004 (gmt 0)



If you put your 'global' .htaccess file in a directory that is 'above' your websites then you just need to use
RewriteOptions inherit
in each sites' .htaccess file (if a site has no .htaccess file then the 'global' file is used by default).

ziekke

2:48 pm on Apr 12, 2004 (gmt 0)

10+ Year Member



Is there any way to do this without using a .htaccess file? I prefer to hardcode my stuff in the configuration of the server.

ziekke

8:47 am on Apr 15, 2004 (gmt 0)

10+ Year Member



bump?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month