Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 1 of 1
  1. #1
    Join Date
    Oct 2010
    Posts
    125

    Problems with url rewrite

    hey everyone, some of you might have noticed i have a brand new website but im having a little problem that im not sure how to do and was wondering if someone could help me...

    currently pages are set statically for example applications.php but i would like it to be more like products/applications, i have done the following in .htaccess to acheive this...

    Code:
    RewriteEngine on
    RewriteRule ^products/applications$ applications.php
    but when i try and visit the new url the style sheets and images are missing, if someone knows how to fix this, i would really appreciate this alot and heres the example of what im trying to explain and even if theres a better method of doing what im trying to do please share it as all your help means alot to me...

    Nathaniel Blackburn
    Shadowscape Studios
    Last edited by shadowscape; 01-29-2011 at 07:35 PM.

  2. #2
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Yes, look at your source of the HTML page, it's relatively loading the sheets
    but with the new configuration it tries to load them from here:

    http://shadowscape.co.uk/products/ap...eets/reset.css

    And I'm sure they do not exist there.

    If you do use mod_rewrite, always use absolute-root paths from the root of the webdirectory.
    try using /resources/stylesheets/reset.css for the paths.
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  3. #3
    Join Date
    Oct 2010
    Posts
    125
    thanks imagine, once i get the partner page up and running ill make sure that i will link to you.

Posting Permissions

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