How can I delete certain pages from OpenCart?

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeHow can I delete certain pages from OpenCart?

This topic has been marked as not resolved.

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

March 4, 2012 at 3:42 am #6751

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]

March 6, 2012 at 12:00 pm #6861

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]

March 6, 2012 at 12:19 pm #6862
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.