.htaccess for ISAPI_Rewrite 3
4 posts
• Page 1 of 1
.htaccess for ISAPI_Rewrite 3
I have been using the .htaccess file to instruct redirects for ISAPI_Rewrite 2.
Over the past month the domain has been upgraded to a new server running ISAPI_rewrite 3. Is there any changes that needs to be made to the .htaccess file?
The server runs IIS 7 which disallows older urls which included &. I have setup the following redirect, but it seems not to work and generates a 404 error.
RewriteRule ^Cable-Avoidance/Radiodetection-CAT3-&-Genny-Kits/p-111-881/$ /Safety-Equipment/Cable-Avoidance/Radiodetection-CAT3-and-Genny-Kits/p-110-111-881/ [NC,R=301,L]
Over the past month the domain has been upgraded to a new server running ISAPI_rewrite 3. Is there any changes that needs to be made to the .htaccess file?
The server runs IIS 7 which disallows older urls which included &. I have setup the following redirect, but it seems not to work and generates a 404 error.
RewriteRule ^Cable-Avoidance/Radiodetection-CAT3-&-Genny-Kits/p-111-881/$ /Safety-Equipment/Cable-Avoidance/Radiodetection-CAT3-and-Genny-Kits/p-110-111-881/ [NC,R=301,L]
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: .htaccess for ISAPI_Rewrite 3
Hello,
Please, provide the rewrite.log for the testing request.
Logging issues described in FAQ
Regards
Andrew
Please, provide the rewrite.log for the testing request.
Logging issues described in FAQ
Regards
Andrew
Re: .htaccess for ISAPI_Rewrite 3
The following has been included in the .htaccess file
-----------------------------------------------------------
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.mydomain\.co\.uk$ [NC]
RewriteRule ^Leica-Disto-D2-&-Protimeter-Mini/p--761/$ /Home-Inspection/Home-Inspectors-Kits/Leica-Disto-D2-and-Protimeter-Mini/p-131-125-761/ [NC,R=301,L]
RewriteRule ^Leica-Disto-D2-&-Protimeter-Surveymaster/p--763/$ /Home-Inspection/Home-Inspectors-Kits/Leica-Disto-D2-and-Protimeter-Surveymaster/p-131-125-763/ [NC,R=301,L]
RewriteRule ^Leica-Lino-L2P5-Cross-Line-&-Dot-Laser/p--905/$ /Laser-Equipment/Cross-Line-Lasers/Leica-Lino-L2P5-Cross-Line-and-Dot-Laser/p-130-99-905/ [NC,R=301,L]
RewriteRule ^Prisms-&-Retro-targets/c-1-147/$ /Surveying-Equipment/Prisms-and-Retro-targets/c-1-92-147/ [NC,R=301,L]
RewriteRule ^Prisms-&-Retro-targets/EDM-Retro-Reflective-Monitoring-target-System/p-147-739$ /Surveying-Equipment/Prisms-and-Retro-targets/EDM-Retro-Reflective-Monitoring-target-System/p-92-147-739/ [NC,R=301,L]
RewriteRule ^Prisms-&-Retro-targets/Mini-Prism-&-Poles---Leica-Style-17.5mm/p-147-607/$ /Surveying-Equipment/Prisms-and-Retro-targets/Mini-Prism-and-Poles---Leica-Style-17.5mm/p-92-147-607/ [NC,R=301,L]
RewriteRule ^Prisms-&-Retro-targets/Mini-Prism-&-Poles---Sokkia--Topcon--Nikon-0mm/p-147-606/$ /Surveying-Equipment/Prisms-and-Retro-targets/Mini-Prism-and-Poles---Sokkia--Topcon--Nikon-0mm/p-92-147-606/ [NC,R=301,L]
RewriteRule ^Prisms-&-Retro-targets/Retro-Reflective-Monitoring-Targets/p-147-672/$ /Surveying-Equipment/Prisms-and-Retro-targets/c-1-92-147/ [NC,R=301,L]
RewriteRule ^Tripods-&-Staffs/Levelling-staff/p-148-668/$ /Surveying-Equipment/Tripods-Staffs-Poles/c-1-92-148/ [NC,R=301,L]
RewriteRule ^Tripods-%26-Staffs/c-1-148/$ /Surveying-Equipment/Tripods-Staffs-Poles/c-1-92-148/ [NC,R=301,L]
RewriteRule ^Tripods-%26-Staffs/Levelling-staff---5m-5section-fibreglass/p-148-669/$ /Surveying-Equipment/Tripods-Staffs-Poles/Levelling-staff---5m-5section-fibreglass/p-92-148-669/ [NC,R=301,L]
RewriteRule ^Tripods-&-Staffs/c-1-148/$ /Surveying-Equipment/Tripods-Staffs-Poles/c-1-92-148/ [NC,R=301,L]
RewriteRule ^Tripods-&-Staffs/Tripod---Elevating--Rising-Head/p-148-738/$ /Surveying-Equipment/Tripods-Staffs-Poles/Tripod---Elevating--Rising-Head/p-92-148-738/ [NC,R=301,L]
RewriteRule ^Cross-Line-Lasers/Leica-Lino-L2P5-Cross-Line-%26-Dot-Laser/p-99-905/$ /Laser-Equipment/Cross-Line-Lasers/Leica-Lino-L2P5-Cross-Line-and-Dot-Laser/p-130-99-905/ [NC,R=301,L]
-----------------------------------------------------------
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.mydomain\.co\.uk$ [NC]
RewriteRule ^Leica-Disto-D2-&-Protimeter-Mini/p--761/$ /Home-Inspection/Home-Inspectors-Kits/Leica-Disto-D2-and-Protimeter-Mini/p-131-125-761/ [NC,R=301,L]
RewriteRule ^Leica-Disto-D2-&-Protimeter-Surveymaster/p--763/$ /Home-Inspection/Home-Inspectors-Kits/Leica-Disto-D2-and-Protimeter-Surveymaster/p-131-125-763/ [NC,R=301,L]
RewriteRule ^Leica-Lino-L2P5-Cross-Line-&-Dot-Laser/p--905/$ /Laser-Equipment/Cross-Line-Lasers/Leica-Lino-L2P5-Cross-Line-and-Dot-Laser/p-130-99-905/ [NC,R=301,L]
RewriteRule ^Prisms-&-Retro-targets/c-1-147/$ /Surveying-Equipment/Prisms-and-Retro-targets/c-1-92-147/ [NC,R=301,L]
RewriteRule ^Prisms-&-Retro-targets/EDM-Retro-Reflective-Monitoring-target-System/p-147-739$ /Surveying-Equipment/Prisms-and-Retro-targets/EDM-Retro-Reflective-Monitoring-target-System/p-92-147-739/ [NC,R=301,L]
RewriteRule ^Prisms-&-Retro-targets/Mini-Prism-&-Poles---Leica-Style-17.5mm/p-147-607/$ /Surveying-Equipment/Prisms-and-Retro-targets/Mini-Prism-and-Poles---Leica-Style-17.5mm/p-92-147-607/ [NC,R=301,L]
RewriteRule ^Prisms-&-Retro-targets/Mini-Prism-&-Poles---Sokkia--Topcon--Nikon-0mm/p-147-606/$ /Surveying-Equipment/Prisms-and-Retro-targets/Mini-Prism-and-Poles---Sokkia--Topcon--Nikon-0mm/p-92-147-606/ [NC,R=301,L]
RewriteRule ^Prisms-&-Retro-targets/Retro-Reflective-Monitoring-Targets/p-147-672/$ /Surveying-Equipment/Prisms-and-Retro-targets/c-1-92-147/ [NC,R=301,L]
RewriteRule ^Tripods-&-Staffs/Levelling-staff/p-148-668/$ /Surveying-Equipment/Tripods-Staffs-Poles/c-1-92-148/ [NC,R=301,L]
RewriteRule ^Tripods-%26-Staffs/c-1-148/$ /Surveying-Equipment/Tripods-Staffs-Poles/c-1-92-148/ [NC,R=301,L]
RewriteRule ^Tripods-%26-Staffs/Levelling-staff---5m-5section-fibreglass/p-148-669/$ /Surveying-Equipment/Tripods-Staffs-Poles/Levelling-staff---5m-5section-fibreglass/p-92-148-669/ [NC,R=301,L]
RewriteRule ^Tripods-&-Staffs/c-1-148/$ /Surveying-Equipment/Tripods-Staffs-Poles/c-1-92-148/ [NC,R=301,L]
RewriteRule ^Tripods-&-Staffs/Tripod---Elevating--Rising-Head/p-148-738/$ /Surveying-Equipment/Tripods-Staffs-Poles/Tripod---Elevating--Rising-Head/p-92-148-738/ [NC,R=301,L]
RewriteRule ^Cross-Line-Lasers/Leica-Lino-L2P5-Cross-Line-%26-Dot-Laser/p-99-905/$ /Laser-Equipment/Cross-Line-Lasers/Leica-Lino-L2P5-Cross-Line-and-Dot-Laser/p-130-99-905/ [NC,R=301,L]
Re: .htaccess for ISAPI_Rewrite 3
I am still receiving this problem. Any help on how to redirect an old domain with & in the url would help.
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests