Results 1 to 3 of 3
  1. #1
    Newbie
    Join Date
    February 10th, 2005
    Posts
    28
    Problem with virtual.dir and mod_rewrite
    I followed the directions here:

    http://www.c3scripts.com/amazon/docs-virtual.html

    I am trying to make the home page load ae.pl and for product links to have no query strings.

    I have this in my ae.ini:

    virtual.dir ""
    virtual.ending ".html"
    virtual.redir yes

    I have this in my .htaccess file:

    RewriteEngine on
    RewriteBase /
    RewriteRule ^$ /cgi-bin/ae.pl [L]

    This does load the correct data but the URI links (product names, etc.,) contain query strings.

    If I add the /amazon/ (or other folder name) as per your initial example in the docs, the links to not contain query strings.

    However, I do not want to add another sub-folder name like /amazon/ or /shop/ etc

    If I add this to ae.ini:

    virtual.dir "/"

    I get an error.

    How to modify mod_rewrite and ae.ini to achieve the result I want?

    Thanks

  2. #2
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    Use a sub-directory. That's the way Virtual Directory (mod_rewrite) of Associate Engine is designed to work. You can change the name of the sub-directory (e.g.: /shop/); you cannot use no sub-directory.

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  3. #3
    Newbie
    Join Date
    February 10th, 2005
    Posts
    28
    OK.

    You should note that the more /levels/of/folders/ you do, certain search engines consider "pages" embedded many levels down to be less important; this is why I was trying not to have another folder level.

    Maybe you could consider this option for the next release?

    Thank you.

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Virtual Directory Problem
    By ercole in forum Cusimano.com Scripts
    Replies: 1
    Last Post: June 15th, 2009, 05:43 PM
  2. yet more virtual includes problem...
    By jazzylee77 in forum Cusimano.com Scripts
    Replies: 2
    Last Post: January 31st, 2008, 01:40 AM
  3. ae.co.uk problem with virtual directory
    By smnash in forum Cusimano.com Scripts
    Replies: 4
    Last Post: November 24th, 2003, 12:33 AM
  4. ae.pl -- PHP Virtual problem
    By rardentech in forum Cusimano.com Scripts
    Replies: 5
    Last Post: June 28th, 2003, 05:55 PM
  5. .htaccess and mod_rewrite problem
    By c4 in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: December 3rd, 2002, 05:22 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
  •