I want that all the url of the type http://www.example.com/page/x
are redirected to the home page http://www.example.com
, where the x
could be a number from 0 to 9 and all combination of them.
Actually my .htaccess
has this instructions in the WordPress section.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Replace your current code by this one in your htaccess
Place this rule after
RewriteEngine On
: