Thread: AllPosters htaccess

 
Tools Search
  #1  
Old April 21st, 2010, 08:58 PM
Full Member
Join Date: January 17th, 2005
Posts: 33
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  
Old April 21st, 2010, 10:30 PM
ABW Ambassador
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  
Old April 22nd, 2010, 12:05 AM
Full Member
Join Date: January 17th, 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/
Join ABW to remove this sponsored message.
  #4  
Old April 22nd, 2010, 12:56 AM
ABW Ambassador
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  
Old April 22nd, 2010, 09:51 AM
Full Member
Join Date: January 17th, 2005
Posts: 33
Solved the issue, thanks.
 

Tools Search
Search:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
htaccess help John Kruger Programming / Datafeeds / Tools 13 February 8th, 2008 09:20 AM
.htaccess maybe? Kevin Programming / Datafeeds / Tools 2 December 5th, 2006 09:09 AM
CSS or .HTAccess or ...? Kip Programming / Datafeeds / Tools 2 September 7th, 2006 09:27 PM
Help with .htaccess, Plz!!! ahmar Programming / Datafeeds / Tools 3 October 28th, 2005 04:51 PM


Content Relevant URLs by vBSEO ©2011, Crawlability, Inc.