Skip to main content
9 events
when toggle format what by license comment
Apr 12, 2018 at 15:35 comment added Mark Kaplun exactly........
Apr 12, 2018 at 15:34 comment added MrWhite Thanks, I see what you're saying. Less overhead for the website under normal operation; more overhead for the redirect itself - but the redirect is a low priority/infrequent task anyway.
Apr 12, 2018 at 9:08 comment added Mark Kaplun (but as you pointed in your comment to the other answer, as it is part of the wordpress block, you should not edit it manually, but write a code to properly generate it)
Apr 12, 2018 at 9:06 comment added Mark Kaplun a different improvement in the htaccess itself can be to move the redirect check to just before "rewriting" to index.php. This way you avoid the check for static files, but still the htaccess itself takes more time to process, and it is still done for all your wordpress pages
Apr 12, 2018 at 9:03 comment added Mark Kaplun .. obviously can simply set a page in that url and set for it a template that simply redirects. The point is that the logic is in the application and if you move it to nginx you do not need to change it, and since you do the check only when you have good suspision, and not just always your performance will also be better (assuming the url is not being actively used anymore in any links you publish)
Apr 12, 2018 at 9:00 comment added Mark Kaplun a competent wordpress developer will do the redirect check only after all wordpress rewrite rules were evaluated and no match was found, or in other words before displaying a 404 page. This way the check will be done only when there is a good case to suspect that the URL needs a redirect
Apr 12, 2018 at 8:57 comment added Mark Kaplun htaccess is loaded on each request. in general for each page requests there are probably 30 static content requests. In this case the rewrite logic will be evaluated for all of them although it might apply to only 3% of them
Apr 12, 2018 at 8:39 comment added MrWhite "and uses less overhead." - Please explain. Using PHP will only increase overhead!
Apr 12, 2018 at 4:03 history answered Mark Kaplun CC BY-SA 3.0