skip to Main Content

301 Redirect in htaccess for URLs having Parameter P – Apache

I need to set 301 redirect in htaccess for URLs having parameter P. One example URL is http://www.price4india.co.in/vivo-x20-plus-ud-price-in-india-scanner-feature-real.html?p=1028 to http://www.price4india.co.in/vivo-x20-plus-ud-price-in-india-scanner-feature-real.html After redirect everything after .html shall get removed and the value after P=...... can be any numerical value. So far…

VIEW QUESTION

Redirect WordPress internal files to 404 page

I have a WordPress installation at mydomain.com/blogs and I have the following .htaccess RewriteEngine On RewriteBase /blogs/ RewriteBase / RewriteRule ^index.php$ - [L] ErrorDocument 404 /blogs/ # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] #RewriteBase / #RewriteRule…

VIEW QUESTION
Back To Top
Search