Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Rewrite url not working for html extension in source url.

Avatar

Avatar
Give Back
Level 2
shivama92274331
Level 2

Likes

3 likes

Total Posts

14 posts

Correct Reply

2 solutions
Top badges earned
Give Back
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Give Back
Level 2
shivama92274331
Level 2

Likes

3 likes

Total Posts

14 posts

Correct Reply

2 solutions
Top badges earned
Give Back
Boost 3
Boost 1
Affirm 1
View profile
shivama92274331
Level 2

04-02-2021

Hi,

The rewrite rules are not working for having source url's extension as html, they are not redirecting to the destination url on browser and source url remains same, for example below redirects don't work while other redirects having no extension or other extension are working fine. Any leads?

 

1. RewriteRule ^/applications/life-science-research.html  /en/products-solutions/all-application.html [R=301,L,NC]
2. RewriteRule ^/applications/life-science-research/dna-sequencing.html  /en/products-solutions/all-application.html [R=301,L,NC]
3. RewriteRule ^/products/assays.html  /en/products-solutions/by-category/assays.html [R=301,L,NC]

 

Regards,

Shivam

View Entire Topic

Avatar

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

583 likes

Total Posts

564 posts

Correct Reply

218 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

583 likes

Total Posts

564 posts

Correct Reply

218 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
MVP

04-02-2021

Can you share with us your entire file please, you might have some other rewrites before these 3 rules. That might be the causing problem.

 

From what I am seeing, your redirect rule looks fine. 

 

Also make sure you add $ to indicate that this is the end of the pattern.

RewriteRule ^/applications/life-science-research.html$ /en/products-solutions/all-application.html [R=301,L,NC]