• Hello team, since I’ve updated php 5.6 to 7.4.21 (cli), the rewrite function ( theme, plugins… ) break my website. I tried to delete and reinstall the plugin but still the same. I had deactivated WP Hide & Security Enhancer for the moment… Thanks for your help

    • This topic was modified 3 years, 1 month ago by grafityx.
    • This topic was modified 3 years, 1 month ago by grafityx.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Maya

    (@tdgu)

    Hi,
    This should work just fine, can you ensure the rewrites are still active on your server?

    Thanks

    Thread Starter grafityx

    (@grafityx)

    Yes mode_rewrite is active on my server

    Plugin Contributor Maya

    (@tdgu)

    Hi,
    Try the following, to ensure the rewrites are actually active:

    1. Add the following lines to your .htaccess file, on top of the file before anything else:
      <IfModule mod_rewrite.c> 
      RewriteEngine On 
      RewriteBase / 
      RewriteRule ^rewrite_test/(.+) /wp-includes/$1 [L,QSA]
      </IfModule> 
    2. The above creates a rewrite for the /wp-includes/ folder, so the files should be accessible through the /rewrite_test/
    3. To test , access the url https://–domain–/rewrite_test/js/heartbeat.js where –domain– is your actual one. This should open the heartbeat.js file

    Thanks

    Thread Starter grafityx

    (@grafityx)

    I tried your code but I get an error 404 when I try to access the url. If I look into the source code, I can see all the URL rewrite, but all return to an error 404 ( css, js, jpg …etc ).
    My server setup on Debian 11 with myvestacp. What should I do ? Thanks for your help

    • This reply was modified 3 years, 1 month ago by grafityx.
    • This reply was modified 3 years, 1 month ago by grafityx.
    • This reply was modified 3 years, 1 month ago by grafityx.
    Thread Starter grafityx

    (@grafityx)

    When I run in ssh sudo a2enmod rewrite server say Module rewrite already enabled

    Plugin Contributor Maya

    (@tdgu)

    Hi,
    Possibly your Apache configuration is set, so the system do not parse any custom rewrites in .htaccess file. Can you check if AllowOverride is set to All?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Incompatibility with PHP 7.4 ?’ is closed to new replies.