re-write rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, I have the following Virtual Host where I am trying to set rewrite rules.  

I have one specific page madev.oed.umn.edu/stuff.html which I am trying to redirect to https://diversity.umn.edu/disability/request/exam location.  All the other pages are redirected to a single page: https://diversity.umn.edu/disability/dsredirect .

I am having trouble redirecting the single page. Whenever I go to madev.oed.umn.edu/stuff or /stuff.html I always get redirected to https://diversity.umn.edu/disability/dsredirect .  I tried clearing browser cashes, but that didn't help.

Thanks for any suggestions.

<VirtualHost 128.101.172.13:80>
DocumentRoot /var/www/html/contaodev
ServerName madev.oed.umn.edu
RewriteEngine on
RewriteRule ^stuff$ https://diversity.umn.edu/disability/request/exam [R=301,L]
RewriteRule ^(.*) https://diversity.umn.edu/disability/dsredirect [R=301,L]
#RewriteRule /.* https://diversity.umn.edu/disability/dsredirect
<Directory "/var/www/html/contaodev">
allow from all
Options +Indexes
</Directory>
</VirtualHost>

--
Tonu Mikk


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux