Hello everyone,
There are some pages in my store that I don’t need and I rather delete them than leaving them empty.
For example, I don’t want the “Returns” and “Site Map” pages to be viewable or accessible even if the person knows the right URL for it, and I also want to delete them from my footer.
Can you help me please? there is a lot of pages in my store that needs to be removed.
Thanks everyone
|
|
Hi,
you can try to place the following statements into your .htaccess file, immediately after RewriteBase / :
RewriteCond %{QUERY_STRING} ^route=account/return/insert$ [NC]
RewriteRule ^(.*)$ %{REQUEST_URI}?route=common/home [L,R=301]
RewriteCond %{QUERY_STRING} ^route=information/sitemap$ [NC]
RewriteRule ^(.*)$ %{REQUEST_URI}?route=common/home [L,R=301]
|
|
You can try this statement if you don’t want route=common/home to be appended to your domain:
RewriteCond %{QUERY_STRING} ^route=account/return/insert$
RewriteRule ^index.php$ /$1? [R=301,L]
|
|