Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 36
  1. #21
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: What's The Easiest Way To Create A Direct Link In The Sidebox?

    Quote Originally Posted by mc12345678 View Post
    Might I suggest that until the to/from is correctly applied or identified that you use a 302 instead of a 301? (ie. A temporary move instead of a permanent move?) almost no telling how many different uris/servers have been redirected permanently for a "test".
    Good point. I won't debate/argue, but I will state that Google isn't quick to take the 301'a as 'gospel'. IOW, it won't drop the original URL from its index just because it sees a 301 rather than a 302. Can't say about the other SE's.

    Sorry, I can't seem to find the google page where I read about this though. I do remember that it came with a comment along the lines that 'people make mistakes' using 301's where a 302 was intended so they treat them both nearly identical - with 'time' being a factor in regards to how they get treated differently.

    Cheers
    RodG

  2. #22
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: What's The Easiest Way To Create A Direct Link In The Sidebox?

    Quote Originally Posted by DK_Scully View Post
    That didn't work, either. I selected the proper website name, and added zencart/index.php?main_page=index&cPath=343 in the second field. It created a redirect, but it didn't take the full url. Instead, it cut it off at www.carnal-pleasures.com/zencart/index.php and won't take the remainder. So of course it won't refresh anything. Any other suggestions? Thanks!
    Hmm, can't say I've ever had a problem with truncation.

    So, next suggestion (since you apparently need to edit the .htaccess directly) go to Google, search for "redirect .htaccess generator" - You'll find many sites where you can enter the source/destination URL's and they will generate the needed code. You then only need to cut n paste that into your own .htaccess file.

    I honestly can't remember the last time I've ever actually *typed* code into an .htaccess file - It is *so* easy to make a mistake, and things really need to be 'perfect' in order to work. This is why I use one of the code generators. :) (no, I don't have a preference which one I use)

    Cheers
    RodG

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

    Default Re: What's The Easiest Way To Create A Direct Link In The Sidebox?

    Quote Originally Posted by RodG View Post
    Good point. I won't debate/argue, but I will state that Google isn't quick to take the 301'a as 'gospel'. IOW, it won't drop the original URL from its index just because it sees a 301 rather than a 302. Can't say about the other SE's.

    Sorry, I can't seem to find the google page where I read about this though. I do remember that it came with a comment along the lines that 'people make mistakes' using 301's where a 302 was intended so they treat them both nearly identical - with 'time' being a factor in regards to how they get treated differently.

    Cheers
    RodG
    I read somewhere that some browsers take things a little too seriously too quickly with my concern being less the ratings than the continued attempt to figure out which set of "rules" must be met to get the desired effect where it almost seems that both the origin and destination seem to be at question. :/
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #24
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: What's The Easiest Way To Create A Direct Link In The Sidebox?

    Quote Originally Posted by DK_Scully View Post
    and added zencart/index.php?main_page=index&cPath=343 in the second field.
    Question. Was this what you typed in because you think it is what is needed, or did you copy this from the page that you are wanting to redirect?

    Quote Originally Posted by DK_Scully View Post
    I assume that this is where you wish to redirect *to*? Until now you've been telling us that you wish to redirect to http://www.book-oasis.com so forgive me if I'm a little confused here. I'm not 100% sure, but it is possible that cPanel isn't allowing the destination to contain parameters because this could conflict with its 'Wild Card Redirect' (IOW, in your case, the cPanel is preventing you from achieving your aim). cPanel is only really good for simple cases - I suppose you could say that this is the reason the code generators exist - they go a step or three beyond what cPanel can do.

    Cheers
    RodG

  5. #25
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: What's The Easiest Way To Create A Direct Link In The Sidebox?

    Quote Originally Posted by mc12345678 View Post
    I read somewhere that some browsers take things a little too seriously too quickly with my concern being less the ratings than the continued attempt to figure out which set of "rules" must be met to get the desired effect where it almost seems that both the origin and destination seem to be at question. :/
    Wish you didn't do that. Browsers are pretty 'dumb' pieces of software. They don't 'remember' a 301 or 302 beyond their current session/cache, so in this regard, it really makes almost zero difference whether a 301 or a 302 is used. Close the browser and/or clear the cache, and everything is 'new' again. :)

    Cheers
    RodG

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

    Default Re: What's The Easiest Way To Create A Direct Link In The Sidebox?

    Quote Originally Posted by RodG View Post
    Wish you didn't do that. Browsers are pretty 'dumb' pieces of software. They don't 'remember' a 301 or 302 beyond their current session/cache, so in this regard, it really makes almost zero difference whether a 301 or a 302 is used. Close the browser and/or clear the cache, and everything is 'new' again. :)

    Cheers
    RodG
    I don't disagree. It does require either the reset/clearing of the cache or other header information to be provided. The particular comment was made based on the lack of discussion of trying to clear the cache between tries which could be compounding the "it doesn't work" condition.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #27
    Join Date
    Jan 2011
    Posts
    339
    Plugin Contributions
    0

    Default Re: What's The Easiest Way To Create A Direct Link In The Sidebox?

    http://www.carnal-pleasures.com/zenc...ndex&cPath=343 going to http://www.book-oasis.com

    The contents of the .htaccess file are listed in a previous frame.

    The same thing happened when I tried it as a temporary rather than a permanent redirect.

  8. #28
    Join Date
    Jan 2011
    Posts
    339
    Plugin Contributions
    0

    Default Re: What's The Easiest Way To Create A Direct Link In The Sidebox?

    Here's the .htaccess file again:

    Quote Originally Posted by DK_Scully View Post

    Code:
    #
    # @copyright Copyright 2003-2013 Zen Cart Development Team
    # @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    # @version GIT: $Id: Author: IronLady  Thu Aug 1 16:10:02 2013 +0100 Modified in v1.5.2 $
    #
    # This is used with Apache WebServers
    #
    # The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
    # It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
    # Will also prevent people from seeing what is in the dir. and any sub-directories
    #
    # For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
    # Additionally, if you want the added protection offered by the OPTIONS directive below, you'll need to add 'Options' to the AllowOverride list, if 'All' is not specified.
    # Example:
    #<Directory "/usr/local/apache/htdocs">
    #  AllowOverride Limit Options Indexes
    #</Directory>
    ###############################
    
    
    Options +FollowSymLinks
    RewriteEngine on
    
    Redirect 301 /index.php?main_page=index&cPath=342 http://www.timelesserotica.com
    Redirect 301 /index.php?main_page=index&cPath=343 http://www.book-oasis.com

  9. #29
    Join Date
    Jan 2011
    Posts
    339
    Plugin Contributions
    0

    Default Re: What's The Easiest Way To Create A Direct Link In The Sidebox?

    Rod:

    I'm trying to get http://www.carnal-pleasures.com/zenc...ndex&cPath=343 to redirect to http://www.book-oasis.com. And I copied it directly from the page. The redirect box cut it off at http://www.carnal-pleasures.com/zencart/index.php instead of taking the complete url.

  10. #30
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,685
    Plugin Contributions
    9

    Default Re: What's The Easiest Way To Create A Direct Link In The Sidebox?

    i am not the king of apache redirects. that said, it looks like you are missing 'zencart' from your .htaccess file. try using the following:

    Code:
    Options +FollowSymLinks
    RewriteEngine on
    
    Redirect 301 /zencart/index.php?main_page=index&cPath=342 http://www.timelesserotica.com
    Redirect 301 /zencart/index.php?main_page=index&cPath=343 http://www.book-oasis.com
    that said, i think there is still a problem. as when i go to:

    http://www.carnal-pleasures.com/inde...ndex&cPath=342

    i get a 404 (not found) error. and if the .htaccess was set up properly, that should be going to:

    http://www.timelesserotica.com

    a previous poster suggested using the cpanel to create the redirect. the .htaccess code you have posted does not look like it was created using cpanel. which is why i was asking for a new htaccess code.

    so i see 2 problems. #1, it does not look like apache is processing the .htaccess file. #2 it looks like if it did, the redirects are wrong.

    but again, i am NOT the king of apache redirection.

    hope that helps. good luck!
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. The Quickest and Easiest way to work out what does what on the CSS style sheet
    By janissaire in forum Templates, Stylesheets, Page Layout
    Replies: 47
    Last Post: 5 Jul 2012, 03:05 AM
  2. What's the easiest way to add custom fields to the New Product page?
    By christopherw in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 18 Sep 2007, 06:16 PM
  3. What is the easiest way to add an extra sidebox and make some html pages in it?
    By hankliu in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 27 Dec 2006, 10:48 AM
  4. Whats the easiest way to create a newsletter??
    By Diva in forum General Questions
    Replies: 5
    Last Post: 27 Jul 2006, 09:08 AM
  5. Shipping, what is the easiest way
    By jcoit1 in forum Managing Customers and Orders
    Replies: 1
    Last Post: 11 Jul 2006, 01:49 AM

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