Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2010
    Posts
    205
    Plugin Contributions
    0

    Default Is there a simple way to redirect a specific page to my home page ?

    I looked in the forum but couldn't find a simple solution for this. Right now, Google is ranking one of my pages 'http://mywebsite.com/index.php?main_page=discount_coupon ' so I don't want to lose that ranking. Problem is, it isn't even a page I'm using in the website so I'd like to redirect it to the home page. I've tried doing a redirect using cpanel but it doesn't seem to work for any of the variations I've tried. Thanks in advance for your help...

  2. #2
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Is there a simple way to redirect a specific page to my home page ?

    Quote Originally Posted by mrcastle View Post
    I looked in the forum but couldn't find a simple solution for this. Right now, Google is ranking one of my pages 'http://mywebsite.com/index.php?main_page=discount_coupon ' so I don't want to lose that ranking. Problem is, it isn't even a page I'm using in the website so I'd like to redirect it to the home page. I've tried doing a redirect using cpanel but it doesn't seem to work for any of the variations I've tried. Thanks in advance for your help...
    Understand that if it gets redirected then the resulting page's content will be what is evaluated for link status and could lose it's "strength".

    One way, code involved, is to add in the includes/modules/pages/discount_coupon/header_php.php after the opening <?php:

    Code:
    zen_redirect(zen_html_link(FILENAME_DEFAULT));
    Other ways would include using an observer for the opening of the header file and do the same thing which would be easier to "maintain" than individual edits to files, but harder to track down the cause for pages going back to the main site.

    Also, depending on how you have your page-not-found setup, you could delete the above directory, and any reference to that page would appear as presented by your setting(s) for a page-not-found.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Feb 2010
    Posts
    205
    Plugin Contributions
    0

    Default Re: Is there a simple way to redirect a specific page to my home page ?

    Ok thank you, that was a great solution.... changed the page not found option in admin and just renamed the directory in case it's needed down the road.

 

 

Similar Threads

  1. v153 Is a simple way to redirect the inner page links?
    By su35 in forum General Questions
    Replies: 0
    Last Post: 10 Dec 2014, 08:23 PM
  2. Adding Specific EZ page to home page bottom.
    By DigitalGuard in forum General Questions
    Replies: 1
    Last Post: 18 Mar 2011, 10:01 PM
  3. Auto redirect from home page to zen cart home
    By gizmo_girl in forum Basic Configuration
    Replies: 5
    Last Post: 4 Nov 2008, 03:46 PM
  4. Redirect checkout to specific page
    By stevenlee in forum General Questions
    Replies: 1
    Last Post: 25 Sep 2008, 09:09 PM
  5. Is there a way that's fairly simple?
    By alwayzdreamin in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 17 Jul 2008, 08:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR