View Single Post
Old 05-25-2003, 08:16 PM  
lamrobertson
Confirmed User
 
Industry Role:
Join Date: Oct 2002
Posts: 475
Need some help with a strange htaccess problem

I posted this on the Q&A board but I don't think too many people are reading it. I'd really appreciate it if someone could help me out.

Well everything I am trying isn't working. Hopefully this is possible. I have two domains. The .com I has the html pages and the .org has the images. So I hotlink my own sites from the .com to the .org. But I think the problem is that on the .com the pages with the content open in a java popup window. Evverything works great until the popwindow opens and then it redirects.

This is what I have is my htaccess:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http(s)?://([a-z0-9-]+\.)*mydomain.org [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://([a-z0-9-]+\.)*mydomain.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://([a-z0-9-]+\.)*www.mydomain.com [NC]
RewriteRule /* http://www.mydomain.com/tour/index.shtml [R,L]
ErrorDocument 400 http://www.mydomain.com/tour/index.shtml

AddHandler server-parsed .htm .html

Is it not possible to open the pages as popups? Also the content on the .org domain is divided into folder then subfolders. ie babes then 010, do I have to put a htacess file in each numbered folder?

Hope someone can help me out. This is driving me nuts.


Thanks in advance Lorna
lamrobertson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote