Results 1 to 1 of 1

Thread: Regular Expressions

  1. #1
    Join Date
    Oct 2005
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Regular Expressions

    I'm having a lot of trouble adding a RewriteCond line into my .htaccess file and this doesn't seem to help me at all.
    So I got this from the comprehensive guide to .htaccess
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
    RewriteRule \.(gif|jpg)$ http://www.mydomain.com/angryman.gif [R,L]
    But I don't have my own domain name, I am using a sub-domain, and I'm adding all these slashes infront of periodes in an attempt to guess and hope for the best.
    How would I go about changing http://www.mydomain.com to http://subdomain.domain.com?

    Any and all help appreciated.
    Thanks in advance.

    Edit: Seems I've figured it out from a link Twey posted in a similar thread
    Last edited by tacmig99; 08-24-2006 at 12:54 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •