[vox-tech] Need help creating rewritecond in Apache
Susan Baur
susan at cdl.edu
Tue Dec 16 16:25:03 PST 2008
Richard,
If I remember correctly, rewrite rules are order dependent. So you may
want to use the rewrite engine instead of redirect.
Then, you could do something like
RewriteEngine On
RewriteRule ^/view.php_dir - [L]
RewriteRule ^(.)$ http://www2.yoursite.com/$1 -[P]
HTH,
--Susan
On Dec 16, 2008, at 4:08 PM, Richard S. Crawford wrote:
> The problem: For the next few days, when visitors browse our site, we
> need to redirect them to a different subdomain, www2. However, there
> are some resources on our original site that visitors will need to
> view from that subdomain; these resources are typically retrieved by a
> script called view.php. In the resources subdirectory there's an
> .htaccess file that redirects back to the main domain, but, of course,
> the rewrite script on the main server simply sends the user back to
> the www2 subdomain.
>
> Can anyone help?
>
> --
> Richard S. Crawford (rscrawford at mossroot.com)
> http://www.mossroot.com
> Publisher and Editor in Chief, Daikaijuzine (http://www.daikaijuzine.com
> )
> _______________________________________________
> vox-tech mailing list
> vox-tech at lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech
>
More information about the vox-tech
mailing list