Results 1 to 5 of 5
  1. #1
    Newbie
    Join Date
    January 18th, 2005
    Posts
    33
    AllPosters htaccess
    I am finally redoing my sites after a few years of neglect. In setting up a virtual directory I am using virtual.dir "posters" in the configuration with the following in my .htaccess:

    AddHandler server-parsed .htm .html

    RewriteEngine on
    RewriteBase /
    RewriteRule ^(posters)/.*$ /cgi-bin/apws/apws.pl?dir=$1 [L]


    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    On one of my sites everything works fine but on a few of the others I still get the apws/apws.pl?cat=84768&dir=posters for example. At least if I go to www.mysite.com/posters I get the main poster directory so I expect there is a slight iissue with the .htaccess?

    Thanks

  2. #2
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    View the APWS Configuration Report and see the loaded configuration. Go to:

    /cgi-bin/apws/apws.pl?cfg=CFGVALUE

    where CFGVALUE is the value of the cfg variable found in your apws-key.txt configuration file. The Configuration Report is organized into collapsible/expandable sections. Click a section to expand it open and see its details; to collapse a section, click its sidebar.

    Click on "Configuration" section and scroll down to virtual.dir variable and see what it says. It should say /posters/ (the leading and trailing / characters are automatically added in case you don't specify them yourself in virtual.dir). If you don't see it set to that value, check your configuration file again.

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano
    Affiliate Tools: Datafeed Merge

  3. #3
    Newbie
    Join Date
    January 18th, 2005
    Posts
    33
    Hi David,

    The configuration report shows

    virtual.dir posters

    I added the leading and trailing slashes in the configuration file and that didn't change the way the script reacted. At that point the coniguration report shows
    virtual.dir /posters/

  4. #4
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    Use the support form and send me your domain URL so I can see the site.

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano
    Affiliate Tools: Datafeed Merge

  5. #5
    Newbie
    Join Date
    January 18th, 2005
    Posts
    33
    Solved the issue, thanks.

  6. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Replies: 4
    Last Post: May 6th, 2012, 12:47 PM
  2. Need help with .htaccess
    By womanht in forum Programming / Datafeeds / Tools
    Replies: 5
    Last Post: February 17th, 2011, 10:30 PM
  3. .htaccess maybe?
    By Kevin in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: December 5th, 2006, 10:09 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
  •