enforce absolute Path

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
strandel
Posts: 50
Joined: Sun 2. May 2004, 22:45

enforce absolute Path

Post 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
Goran
Posts: 81
Joined: Thu 27. Nov 2003, 11:43
Location: Zagreb, Croatia
Contact:

Post 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.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Post by Jensensen »

Hi strandel,
hey what??? :?: :shock:
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
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
strandel
Posts: 50
Joined: Sun 2. May 2004, 22:45

Post 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.
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

@strandel
stop double posting!!! You have asked same question in German section.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply