Page 1 of 1
enforce absolute Path
Posted: Thu 19. Apr 2007, 17:00
by strandel
Hello
How can I enforce phpwcms to use absolute paths for images and not relative paths?
Wrong, default
src="content/gt/27c758418eb6252711d38668f3a865fe.gif"
Correct, unfortunately not default
src="
http://www.test.com/content/gt/27c75841 ... a865fe.gif"
What files do I have to change?
I already tried conf.inc and default.inc.php without success.
Regards Hans
Posted: Thu 19. Apr 2007, 18:55
by Goran
Fortunately relative paths are default. There is no reason to use absolute paths for images. Think about https problem or how easy is to move a phpwcms from one directory to another, or from one domain name to another.
Posted: Thu 19. Apr 2007, 19:56
by Jensensen
Hi strandel,
hey what???
what's wrong with relative paths???
you can run phphwcms with absolute paths but this would mean to patch many files manually????!!!
makes no sense at all???!!!

and think about what Goran mentioned.....
if you get no images displayed by default, you may have still some path problems with your installation....
greetz
jensensen
Posted: Sat 21. Apr 2007, 09:52
by strandel
I want to grap a specific page created by phpwcms with an external newsletter software.
I tried to implement <base href=
http://www.test.com/>. This works nicely. "Unfortunately", my newsletter software is rewriting all href for link and read tracking.... and <base href..> is also rewritten. After rewriting <base href ..> is not working correctly and no pictures are shown in the newsletter.
I ony can solve this problem by having absolute picture paths.
Posted: Sun 22. Apr 2007, 19:15
by Oliver Georgi
@strandel
stop double posting!!! You have asked same question in German section.
Oliver