PDA

Click to See Complete Forum and Search --> : [RESOLVED] Apache Re-Write Asolute Paths


Pino
Jun 16th, 2008, 09:22 AM
Ok,

I've just applied apache re-write to a website.

Old url %url%/categories?cId=x
New /categories/x/product-Name/

Ok thast great but the image/JS/css paths of the files were before just relitive paths so

css/style.css
js/a.js

etc etc

What is the quickest way to make these paths absolute? So that they get picked up again.

Thanks

techgnome
Jun 16th, 2008, 09:48 AM
You could make them relative to the root....

/css/style.css
/js/a.js



-tg

RudiVisser
Jun 16th, 2008, 11:24 AM
Or you can rewrite to http://www.domain.com/css/style.css if that's what you were asking originally.

RobDog888
Jun 16th, 2008, 02:42 PM
Usually using an absolute path is not a good thing to do. Have you tried tgs code yet?

Pino
Jun 16th, 2008, 03:14 PM
I was being very very stupid, talk about a lapse in concentration.

Sorry to hassle you guys