| Posted: 25 June 2010 at 10:19am | IP Logged
|
|
|
Hi Folks,
New to the forum and really struggling with a rule having just launched a new client website. The old website made use of /permalinks/ which I am struggling to re-direct:
Old URL is http://www.naturetrek.co.uk/wildlife-holidays-in-asia/
New URL is http://www.naturetrek.co.uk/wildlife_holidays_in_asia.aspx
I have been using the following rule...
RewriteCond Host: www\.naturetrek\.co\.uk RewriteRule /wildlife-holidays-in-asia/ /wildlife_holidays_in_asia.aspx [I]
The problem is, it sucessfully finds and oads the .aspx page, BUT, all the dependent images, CSS files etc are not loaded because the rule still includes the redundant folder in the path (?) eg.
http://www.naturetrek.co.uk/wildlife-holidays-in-asia/images/logo.jpg
where the /wildlife-holidays-in-asia/ folder structure simply doesnt exist on the new site:-(
I know this is because we are using relative paths, but changing to absolute paths will be a mammoth task and not really an option.
I also know that use of the <base> tag will reslove my problem, but unfortunately introducing this tag screws up a whole bunch of stuff on the rest of the site.
I was hoping that someone with a better knowledge of the ISAPi Rewrite syntax could be provide with a better rule to get around this issue.
Thanks in advance for any help received.
Paul
__________________ http://www.clickfire.co.uk
|