rankmath / seo-by-rank-math

Rank Math is a revolutionary WordPress SEO Plugin that combines the features of many SEO tools and lets you multiply your traffic in the easiest way possible :bulb: :chart_with_upwards_trend: →
https://rankmath.com
107 stars 52 forks source link

[Redirections]: Export to htaccess should use Redirect instead of RewriteRule #155

Open Nickbahson opened 1 year ago

Nickbahson commented 1 year ago

Is your feature request related to a problem? Please describe. As mentioned by a user, Apache doc: https://httpd.apache.org/docs/2.4/rewrite/avoid.html recommends using Redirect from mod_alias instead of RewriteRule from mod_rewrite for simple redirections.

We should change the export to htaccess method to use Redirect. This also applies for the "htaccess sync" feature present in the Pro version.

Support ticket link: https://wordpress.org/support/topic/exported-redirects-are-using-rewriterule/

Describe the solution you'd like Replace use of mod_rewrite with mod_alias.