[support] Linking to an external page on the same server

Gar Nelson Gar.Nelson at noaa.gov
Thu Feb 5 14:33:11 UTC 2009


In the /var/www/html/movies directory the content of .htaccess is;  (the
file is automatically created during the VCDDB setup process.)

[cat .htaccess]
Options -Indexes +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /movies/

RewriteRule ^movie/([0-9]+)$ index.php?page=cd&vcd_id=$1        [QSA]
RewriteRule ^category/([0-9]+)$ index.php?page=category&category_id=$1 
[QSA]
RewriteRule ^category/([0-9]+)/([0-9]+)$
index.php?page=category&category_id=$1&batch=$2 [QSA]
RewriteRule ^category/([0-9]+)/([0-9]+)/([a-zA-Z\\+]*)$
index.php?page=category&category_id=$1&batch=$2&viewmode=$3 [QSA]

RewriteRule ^xxx/(category|studio)/([0-9]+)$
index.php?page=adultcategory&$1_id=$2      [QSA]
RewriteRule ^xxx/(category|studio)/([0-9]+)/([0-9]+)$
index.php?page=adultcategory&$1_id=$2&batch=$3    [QSA]
RewriteRule ^xxx/(category|studio)/([0-9]+)/([0-9]+)/(img|text)$
index.php?page=adultcategory&$1_id=$2&batch=$3&viewmode=$4       [QSA]

RewriteRule ^pornstars/(all|active)/([a-zA-Z\\+]){1}/(img|text)$
index.php?page=pornstars&view=$1&l=$2&viewmode=$3[QSA]
RewriteRule ^pornstars/(all|active)$ index.php?page=pornstars&view=$1  
[QSA]
RewriteRule ^pornstar/([0-9]+)$ index.php?page=pornstar&pornstar_id=$1 
[QSA]

RewriteRule ^search/?(actor|director)/([^\?/]*)$
index.php?page=search&by=$1&searchstring=$2 [QSA]
RewriteRule ^file/(cover|pornstar|nfo)/([0-9]+)(&download)?$
index.php?page=file&$1_id=$2&$3    [QSA]
RewriteRule ^page/movies/([a-zA-Z\\+]*)/([0-9]+)$
index.php?page=movies&do=$1&index=$2  [QSA]
RewriteRule ^page/movies/([a-zA-Z\\+]*)$ index.php?page=movies&do=$1 [QSA]
RewriteRule ^page/([^\?/]+)$ index.php?page=$1  [QSA]
</IfModule>

I don't see anything thing there that would cause this problem, but I'm
a little shaky on Rewrite Rules. 

Mod_rewrite is loaded in httpd.conf;
[grep rewrite httpd.conf]
LoadModule rewrite_module modules/mod_rewrite.so

And for anyone else that thinks about using this in a professional
environment, there is a switch to eliminate showing any of the adult
options.  Personally, I would prefer to just strip them out of the
program, but it is nice to be able to easily turn them off.

Thanks,
Gar

simone-www.io-lab.org wrote:
> what have you got in your .htaccess file in yoursite/movie ?
>
> On Wed, Feb 4, 2009 at 11:34 PM, Gar Nelson <Gar.Nelson at noaa.gov> wrote:
>   
>> I've got an apache/drupal problem that I'm coming up empty on for how to
>> fix.
>> My OS is RHEL 4,
>> Apache is httpd-2.0.52-41.ent.2
>> Drupal is drupal5-5.15-1.el4.rf
>>
>> Drupal is working fine with Apache. My problem is that I want to run VCDDB,
>> (http://vcddb.konni.com/) which is an external web based movie database
>> application. I've installed it in /var/www/html/movies, and the installation
>> process completed successfully. Drupal is installed in /var/www/html
>>
>> My problem is that when I go to http://my.host/movies or
>> http://my.host/movies/ all I get is a blank screen. If I try to go to
>> http://my.host/movies/index.php, I get a  popup trying to download
>> "index.php" rather than display "index.php".
>>
>> I have also installed WebCalendar (http://www.k5n.us/webcalendar.php), and
>> that does work correctly when I go to http://my.host/calendar
>>
>> I suspect this is a Drupal issue, since VCDDB was running fine when I was
>> using a manually coded html web site (rather than Drupal),but I'm not sure.
>> If could be an Apache thing.
>>
>> Any ideas?
>>
>> Thanks in advance.
>> Gar
>> --
>> [ Drupal support list | http://lists.drupal.org/ ]
>>
>>     
>
>
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20090205/1f26adc1/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gar_nelson.vcf
Type: text/x-vcard
Size: 282 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/support/attachments/20090205/1f26adc1/attachment.vcf 


More information about the support mailing list