Page 4 of 4 FirstFirst ... 234
Results 31 to 36 of 36
  1. #31
    Join Date
    Jan 2011
    Posts
    339
    Plugin Contributions
    0

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

    I tried that yesterday...it didn't work, either.

    Quote Originally Posted by DK_Scully View Post
    I even tried changing the path so it says /zencart/index.php?main_page=index&cPath=343 http://www.book-oasis.com since the zencart program is in a folder. Nothing works.

  2. #32
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,904
    Plugin Contributions
    13

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

    Quote Originally Posted by carlwhat View Post
    ...#1, it does not look like apache is processing the .htaccess file.
    your filename could be wrong. you could have it in the wrong place.

    your redirects will not work if apache is not reading the file.

    you need to ensure that apache is reading the file prior to figuring out the redirects. hostgator should be able to help you with that.

    good luck!
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #33
    Join Date
    Jan 2011
    Posts
    339
    Plugin Contributions
    0

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

    The .htaccess file is in the www.carnal-pleasures.com/ root directory. Hostgator's hosting is pretty good, but their tech support can't find their way out of a wet paper bag with both hands and a road map. I gave up on asking them for help years ago.

  4. #34
    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
    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.
    Code:
     
    RewriteEngine On
    RewriteCond %{HTTP_HOST}  ^www\.carnal-pleasures\.com$ [NC]
    RewriteCond %{QUERY_STRING}  ^main_page=index&cPath=343$ [NC]
    RewriteRule ^zencart/index\.php$ http://www.book-oasis.com/? [R=301,NE,NC,L]
    Cheers
    RodG

  5. #35
    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
    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.
    This *should* also work.
    Code:
    Redirect 302 /zencart/index.php?main_page=index&cPath=343 http://www.book-oasis.com

  6. #36
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

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

    Quote Originally Posted by DK_Scully View Post
    Add the following at the top of the .htaccess file for carnal-pleasures.com, removing any duplication further down in the file.

    Code:
    #############################
    ##  General Settings
    
    # Some basic protection provided by Apache
    Options +SymLinksIfOwnerMatch -FollowSymlinks -Indexes
    
    # Define the default Character Set for Browsers
    AddDefaultCharset utf-8
    
    RewriteEngine ON
    
    
    #############################
    ##  Rewrites
    
    RewriteCond %{QUERY_STRING} cPath=343
    RewriteRule .? http://www.book-oasis.com/ [R=301,QSD,L]
    Note that any URL having cPath=343 within it will be redirected.

 

 
Page 4 of 4 FirstFirst ... 234

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

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