Can't get a URL to rewrite

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 9
Joined: 03 Oct 2012, 11:17

Can't get a URL to rewrite

10 Jul 2013, 14:35

I want to change http://www.domain.com/disabilities to http://www.domain.com/government/boardsandcommissions/disabilities.aspx so I did:

RewriteRule (http://www.domain.com/disabilities) http://www.domain.com/government/boardsandcommissions/disabilities.aspx [NC,L]

because above that we have:

RewriteRule (BondCampaign/tabid/3861/ctl/Login/Default.aspx) http://www.domain.com/Government/AgenciesDepartments/Planning/BondCampaign.aspx [NC,L]

which works. I figured I'd just copy the format, but no dice. What did I do wrong? Thanks :)

User avatar
Posts: 9
Joined: 03 Oct 2012, 11:17

Re: Can't get a URL to rewrite

10 Jul 2013, 14:52

Nevermind, I read Andrew's reply to someone else and in his reply I saw the answer I needed:

RewriteCond %{HTTP_HOST} ^www\.domain\.com$
RewriteRule ^disabilities$ /government/boardsandcommissions/disabilities.aspx [NC,L]


Thanks Andrew!

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Can't get a URL to rewrite

10 Jul 2013, 20:08

no problem ;)

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 3 guests