1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

mod_rewrite? Probably a stupid question

Discussion in 'Content Management' started by Helmet, Jul 21, 2008.

  1. #1
    I'm not sure how to ask people or Google this question.. I've been looking for a couple of hours. I have some domain pointers on my hosting account

    mymaindomain.com/
    mymaindomain.com/pointerone accessed as pointerone.com
    mymaindomain.com/pointertwo accessed as pointertwo.com

    cheapo.

    I have js and css files in maindomain.com/css and mymaindomain.com/js that I'd like to make available to pointerone.com and pointertwo.com. Is there a way to do this with mod_rewrite? I'm getting permissions errors trying to link to them with absolute uri's (http://mymaindomain.com/js/file.js)

    Thanks!
     
    Helmet, Jul 21, 2008 IP
  2. mrphp

    mrphp Well-Known Member

    Messages:
    682
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    110
    #2
    for css you can use link tag something like

    <link href="http://collecta-mania.com.au/style.css" rel="stylesheet" type="text/css">

    for js

    <script src="http://collecta-mania.com.au/prototype.js" type="text/javascript"></script>
     
    mrphp, Jul 22, 2008 IP
  3. Helmet

    Helmet Peon

    Messages:
    38
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    as I mentioned in my original post:

    I'm getting permissions errors trying to link to them with absolute uri's (http://mymaindomain.com/js/file.js)
     
    Helmet, Jul 22, 2008 IP