.htaccess redirect problem - [This rule was not met.]
I trying to create redirect old non existing page to new URL on Apache with htaccess file, i am very confused, because i tried a lot of combination of this redirect
I need to redirect something about 10 subpages like:
https://example.com/main/home/news -> https://example.com/
https://example.com/main/checkout/summary -> https://example.com/summary
https://example.com/main/auth/home -> https://example.com/myaccount
I tried to use (for 1st example) this .htaccess
code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^main/home/news$ /? [L,R=301]
RewriteRule ^index\.html$ - [L]
RewriteCond %{QUERY_STRING} ^$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
but in the validator I have information: "This rule was no meet"
I am also wondering if it is not a matter of the fact that the application is running on azure app services
Screenshot from the validator:
Comments
Post a Comment