url rewriting - Is there something wrong with my rewrite code in .htaccess file -
i have been demented problem 3 days , no matter how differently search google or read helion website cannot understand doing wrong. so, hope kind enough me.
i use .htaccess file create search engine friendly urls , has worked several years.
my web hosting company has moved site new windows iis8.5 server , rewrites no longer work. tell me using helicon ape (not sure is). but, cannot find on helicon website makes sense me, technical old pensioners mind.
here sample of code used work on old server:
# helicon isapi_rewrite configuration file rewriteengine on rewritebase / rewriterule ^uk-bed-breakfast-(.*)\.htm /bed-and-breakfast/region.asp\?county=$1 [qsa] this used turn
www.mydomain.com/bed-and-breakfast/region.asp?county=first
into
www.mydomain.com/uk-bed-breakfast-first.htm
now when use second url 404 error.
do need make changes comply newer version of iis or helicon ape rewrite, , if they
after lot of painstaking experimentation problem has @ last been solved.
it seems new iis8.5 server , helion ape needed put rewrite rules web.config file instead of .htaccess file.
the new rule example gave in question is:
<rule name="imported rule 6"> <match url="^uk-bed-breakfast-(.*)\.htm" ignorecase="false" /> <action type="rewrite" url="/bed-and-breakfast/region.asp?county={r:1}" appendquerystring="true" /> </rule> using system website @ last functioning correctly.
many tried help.
tog
Comments
Post a Comment