Can't get a URL to rewrite
3 posts
• Page 1 of 1
Can't get a URL to rewrite
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![Smile :)](./images/smilies/icon_e_smile.gif)
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
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: Can't get a URL to rewrite
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!
RewriteCond %{HTTP_HOST} ^www\.domain\.com$
RewriteRule ^disabilities$ /government/boardsandcommissions/disabilities.aspx [NC,L]
Thanks Andrew!
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests