Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Location
    Barcelona
    Posts
    201
    Plugin Contributions
    0

    Default Re: How to avoid this?

    Quote Originally Posted by banswidthjunkie View Post
    How about what you had before, but
    PHP Code:
      if( ereg("\?alpha_filter_id=[0-9]+$"$_SERVER['REQUEST_URI']) ) {
        
    header('HTTP/1.1 301 Moved Permanently');
        
    header('Location:http://www.mysite.com/shop/');
      } 
    That will catch the filter if it is the only variable. I think that is a brutal hack, but it's up to you.

    Personally I think that you are worrying about nothing, in time google will get a decent index of your site and those things will filter away.
    Many thanks for your proposal. Maybe itīs abrutal hack, but by now is the only i have... At what fileis better inserting this? Filter.php? index.php?, or maybe to make a new php file and hooking it at auto-load?

    I worry about this because i have 23 "main pages" indexed at google with an alpha filte id!!! Very bad for the serps... That thisnīt happen to any other zen cart user?

  2. #2
    Join Date
    Nov 2007
    Posts
    195
    Plugin Contributions
    2

    Default Re: How to avoid this?

    Personally I wouldn't put it anywhere. But you could try putting it where you had the bit of code that caused your site to continually loop.

  3. #3
    Join Date
    Feb 2007
    Location
    Barcelona
    Posts
    201
    Plugin Contributions
    0

    Default Re: How to avoid this?

    mmm. what effects do you think that may cause? Worth than to have more than 30 main pages (every day the number arise) indexed??

  4. #4
    Join Date
    Nov 2007
    Posts
    195
    Plugin Contributions
    2

    Default Re: How to avoid this?

    Yeah, I really wouldn't worry about it. If you are searching for your URL then all sorts of odd stuff can get indexed. What you want to worry about is tuning your site so that you get ranked on specific search terms, not a few multiple pages.

  5. #5
    Join Date
    Feb 2007
    Location
    Barcelona
    Posts
    201
    Plugin Contributions
    0

    Default Re: How to avoid this?

    Many thanks for your code.
    Finally, i added a file (xxxredirect.php); calling it into index.php, and for now (maybe tomorrow i detect some contraindications), all seems to be ok.
    I included at xxxredirect.phph a redirection from www.mysite.com/shop/index.php to www.mysite.com/shop/ too

    Many thanx

 

 

Similar Threads

  1. How to avoid 10736 Paypal error?
    By nya1798 in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 2 Dec 2011, 10:54 PM
  2. How do I avoid over selling?
    By erinn in forum General Questions
    Replies: 3
    Last Post: 7 Oct 2008, 02:32 PM
  3. Pages Wont Load / Apache Restart Fixes this... can I avoid this?
    By dontknowwhatimdoing in forum Installing on a Linux/Unix Server
    Replies: 10
    Last Post: 20 Sep 2008, 05:21 PM
  4. How to avoid mandatory account?
    By gsdcypher in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 May 2007, 01:09 AM

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