Results 1 to 3 of 3
  1. #1
    Newbie
    Join Date
    January 12th, 2006
    Posts
    15
    Dont want index.html to be store
    Hello, our hono store lies on a sub page, not the index. What is the URL I will use to call the store cgi-bin/dyse/templates/home.html from a link?

    For example

    our website:
    http://mydomain.com will not show any store info. Visitor has to go to
    http://mydomain.com/alternatePathToStore to see the store. What URL would I use for the alternate path?

    Thank you
    Last edited by makenoiz; March 23rd, 2006 at 01:04 AM.

  2. #2
    Newbie
    Join Date
    January 12th, 2006
    Posts
    15
    Talking I think I got it - can you check?
    Hi David, I think I got it.

    I added the following lines to my .htaccess

    RewriteEngine on
    RewriteBase /
    RewriteRule ^(store)$ $1/ [R,L]
    RewriteRule ^(store)/(.*)(\.[a-z]+)$ cgi-bin/dyse/view.pl?merch=hono&dir=&path=$1 [L]
    RewriteRule ^(store)/(.*)$ cgi-bin/dyse/view.pl?merch=hono&dir=&path=$1 [L]


    so now I have:

    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.+$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ cgi-bin/dyse/view.pl?merch=hono&dir=&path=$1 [L]

    RewriteRule ^(store)$ $1/ [R,L]
    RewriteRule ^(store)/(.*)(\.[a-z]+)$ cgi-bin/dyse/view.pl?merch=hono&dir=&path=$1 [L]
    RewriteRule ^(store)/(.*)$ cgi-bin/dyse/view.pl?merch=hono&dir=&path=$1 [L]

    Look good to you. This will retain our UID?

    Thank you

  3. #3
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    See "Configure .htaccess File > Products in Sub-Directory".

    What you have stated is the rules for having the store at your home page and the rules for having the store in a sub-directory. Do not use both at the same time.

    To have the Hono store in a sub-directory called /store (instead of at the home page), use only the following RewriteCond/RewriteRule statements in your .htaccess file:

    RewriteEngine on
    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(store)(/.*)?$ cgi-bin/dyse/view.pl?merch=hono&dir=$1&path=$2 [L]


    The .htaccess file has nothing to do with your associate ID; your associate ID is controlled by the key file.

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Can html index and php index run parallel
    By megatonloh in forum Programming / Datafeeds / Tools
    Replies: 22
    Last Post: April 13th, 2007, 06:55 PM
  2. Hono cats.html base and partial URLs dont work
    By makenoiz in forum Cusimano.com Scripts
    Replies: 4
    Last Post: April 13th, 2006, 12:39 AM
  3. html 101 - index.htm or index.html?
    By Cheesehead in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: August 31st, 2005, 04:20 PM
  4. index.php and index.html
    By Roland in forum Search Engine Optimization
    Replies: 9
    Last Post: November 21st, 2004, 10:59 PM
  5. Index.html - please advise
    By kky2k in forum Cusimano.com Scripts
    Replies: 4
    Last Post: November 12th, 2003, 02:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •