Having trouble getting mod_rewrite to work. We have .htaccess in the root directory set up with:
RewriteEngine On
RewriteRule (.*)\.css $1.css [L]
RewriteRule ^images/(.*) images/$1 [L]
RewriteRule ^AddImages/(.*) AddImages/$1 [L]
RewriteRule ^Images/(.*) Images/$1 [L]
RewriteRule ^p/(.*) /cgi-bin/page.cgi?g=$1 [L]
RewriteRule ^info/(.*) /cgi-bin/page.cgi?p=$1 [L]
RewriteRule ^(.*).html /cgi-bin/page.cgi?g=$1.html [L]
RewriteRule ^$ /cgi-bin/page.cgi [L]
In httpd.conf, the virtual directory is configured thus:
<VirtualHost newsite.localareaguide.com>
DocumentRoot /home/localareaguide/www
ServerName newsite.localareaguide.com
ScriptAlias /cgi-bin/ "/home/localareaguide/www/cgi-bin/"
<Directory />
AllowOverride All
</Directory>
ErrorLog "|/usr/local/sbin/httplog -u log -g webclient /var/errorlogs/newsite/er%Y%m%d.err"
CustomLog "|/usr/local/sbin/httplog -u log -g webclient /var/accesslogs/newsite/ex%Y%m%d.log" combined
AccessFileName .htaccess
<Location /cgi-bin>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>
</VirtualHost>
From my admin page when I click "Dynamic" the url looks like this:
http://newsite.localareaguide.com/cgi-bin/page.cgi?d=1
and links look like this:
http://newsite.localareaguide.com/...2Findex.html&d=1
The LinksSQL Help file says:
And to your perl startup file you need to add:
use lib '/full/path/to/admin';
use Links::mod_perl;
We don't know where to do this on our system.
Also, do we need somewhere in our httpd.conf file a PerlModule Apache::DBI or PerlRequire directive?
Thanks!
RewriteEngine On
RewriteRule (.*)\.css $1.css [L]
RewriteRule ^images/(.*) images/$1 [L]
RewriteRule ^AddImages/(.*) AddImages/$1 [L]
RewriteRule ^Images/(.*) Images/$1 [L]
RewriteRule ^p/(.*) /cgi-bin/page.cgi?g=$1 [L]
RewriteRule ^info/(.*) /cgi-bin/page.cgi?p=$1 [L]
RewriteRule ^(.*).html /cgi-bin/page.cgi?g=$1.html [L]
RewriteRule ^$ /cgi-bin/page.cgi [L]
In httpd.conf, the virtual directory is configured thus:
<VirtualHost newsite.localareaguide.com>
DocumentRoot /home/localareaguide/www
ServerName newsite.localareaguide.com
ScriptAlias /cgi-bin/ "/home/localareaguide/www/cgi-bin/"
<Directory />
AllowOverride All
</Directory>
ErrorLog "|/usr/local/sbin/httplog -u log -g webclient /var/errorlogs/newsite/er%Y%m%d.err"
CustomLog "|/usr/local/sbin/httplog -u log -g webclient /var/accesslogs/newsite/ex%Y%m%d.log" combined
AccessFileName .htaccess
<Location /cgi-bin>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>
</VirtualHost>
From my admin page when I click "Dynamic" the url looks like this:
http://newsite.localareaguide.com/cgi-bin/page.cgi?d=1
and links look like this:
http://newsite.localareaguide.com/...2Findex.html&d=1
The LinksSQL Help file says:
And to your perl startup file you need to add:
use lib '/full/path/to/admin';
use Links::mod_perl;
We don't know where to do this on our system.
Also, do we need somewhere in our httpd.conf file a PerlModule Apache::DBI or PerlRequire directive?
Thanks!