Hello all,
I'm in need of some help with some 301 Redirects for one of my clients. The normal 301 Redirects are working fine for me, but some of the more unique codes aren't working. Here's some examples of the problem I'm experience:
This code works when I put it at the end of my URL (and remove the $):
<rule name="Rewrite Rule 2" stopProcessing="true">
<match url="^sales_staff.php$" ignoreCase="false" />
<action type="Redirect" url="/home" redirectType="Permanent" />
</rule>
However, this one won't (we think it has something to do with the stock_number=F414A$):
<rule name="Rewrite Rule 6" stopProcessing="true">
<match url="^vehicle_details.php?stock_number=F414A$" ignoreCase="false" />
<action type="Redirect" url="/vehicle-locator-search-cars-for-sale-lafayette-indiana" redirectType="Permanent" />
</rule>
And also, these two snippets make the whole website turn into a 500 error:
<rule name="Rewrite Rule 5" stopProcessing="true">
<match url="^application.php?stock_num=&year=&make=&model=$" ignoreCase="false" />
<action type="Redirect" url="/apply-online-vehicle-financing-lafayette-indiana" redirectType="Permanent" />
</rule>
<rule name="Rewrite Rule 30" stopProcessing="true">
<match url="^inventory_search.php?page=2&orderby=year$" ignoreCase="false" />
<action type="Redirect" url="/inventory-search-used-cars-lafayette-indiana" redirectType="Permanent" />
</rule>
Has anybody else experienced an issue like this before and/or do you know how to fix it? Thanks for any help you're able to offer.