My problem is I am adding a RewriteRule
in a WordPress htaccess file, to prevent wp-admin from being accessed.
I receive this error:
www.mywebsite.in redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS
Please help me find a solution.
RewriteEngine on
RewriteRule ^questionlistshow-(.*).html$ ./questionlistshow.php?url=$1
# Turn Rewrite Engine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
# file path
ErrorDocument 404 http://www.mywebsite.in/404.html
# 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>
</div>