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

    I am trying to make the home page load 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/ [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?


  2. #2
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Toronto, Canada
    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
    Join Date
    February 9th, 2005

    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 Scripts
    Replies: 1
    Last Post: June 15th, 2009, 04:43 PM
  2. yet more virtual includes problem...
    By jazzylee77 in forum Scripts
    Replies: 2
    Last Post: January 31st, 2008, 12:40 AM
  3. problem with virtual directory
    By smnash in forum Scripts
    Replies: 4
    Last Post: November 23rd, 2003, 11:33 PM
  4. -- PHP Virtual problem
    By rardentech in forum Scripts
    Replies: 5
    Last Post: June 28th, 2003, 04:55 PM
  5. .htaccess and mod_rewrite problem
    By c4 in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: December 3rd, 2002, 04: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