Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 2 of 2

This is a discussion on help me fix mod rewrite error in the Shared & Semi-Dedicated forum
Hi, I made mod rewrite for my website, however I must use absolute path for direcoties images, css, js ... meant i must insert line ...

  1. #1
    JPC Member
    Join Date
    Nov 2007
    Posts
    33

    Arrow help me fix mod rewrite error

    Hi,

    I made mod rewrite for my website, however I must use absolute path for direcoties images, css, js... meant i must insert line http://www.mydomain.com/ into web pages , because I put directories images, css, js... in root, If no do that, web pages don't understand those directories.
    I tried to make line in .htaccess file:
    RewriteRule ^(images|css|js|flv|png)/$ /(images|css|js)/ [L]

    Purpose is change path of directories images, css... to images, css in root
    But it seem no works.
    Please help me urgent

    Thanks

  2. #2
    Techinical Support Rep.
    Join Date
    Oct 2008
    Location
    Canada
    Posts
    526
    Hi,

    The way you have it setup will not work as you can't use the | operator in the substitution field.

    What you should do is use a root relative url.

    e.g.

    Code:
    <img src="/images/someimage.png" />
    If you provided your actual site we might be able to provide more help.
    I do work for JaguarPC. If you do need help please provide your ticket number (this isn't sensitive information).

    If I'm not active on the forum please open a ticket instead of PMing me. If you think the issue requires access to your server please open a ticket.

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
  •