Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-12-12 22:10:36

NickT
Member
From: England, UK
Registered: 2006-12-12
Posts: 13

Different image/files URL

Hi there,

I’ve had a search about the forums and Google, but couldn’t find anything particularly helpful.

I have Textpattern setup as normal, with the images path as media/images, and the files path as /home/username/public_html/media/files.

Now, what I want to do is have Textpattern serve up images and files from a different URL, rather than www.mydomain.com/media/images. What I need is it serving up http://media.mydomain.com/images.

Is this possible without a lot of tweaking? I’m comfortable with PHP, but would rather not make too many modifications for the sake of remembering for future releases :-)

Thanks!
Nick

Offline

#2 2006-12-13 00:06:04

nimnix
Archived Plugin Author
Registered: 2004-05-26
Posts: 63
Website

Re: Different image/files URL

It looks like in the Admin -> Preferences tab, under Advanced, you can set the image and file directories. I didn’t change mine so I don’t know if that’ll help you at all.

Last edited by nimnix (2006-12-13 00:06:42)


textpattern.org :: find and share Textpattern resources
textpattern.net :: TextBook – Textpattern wiki

Offline

#3 2006-12-13 03:26:49

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Different image/files URL

Is this possible without a lot of tweaking?

Nope, ‘fraid not. While you could use .htaccess to redirect your urls, you’d still have to edit several tag functions to actually output the different path.

Not really worth it, I would think. Is there a particular reason you need this?

Offline

#4 2006-12-13 10:30:03

NickT
Member
From: England, UK
Registered: 2006-12-12
Posts: 13

Re: Different image/files URL

Hi Mary,

Thanks for confirming – I thought as much.

The only reason really is that it’s already a scheme which I already use (so it’d be nice to keep the continuation), but it also makes statistics easier to collect on a per-subdomain basis.

Is it worth requesting this as a feature request for a future version?

Regards,
Nick

Last edited by NickT (2006-12-13 10:31:56)

Offline

#5 2006-12-13 11:05:11

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Different image/files URL

While it’s entirely possible I’m mistaken, it’s not something I see as being needed by most or even many people, no. :/ Still it doesn’t hurt to ask, let us think about. :)

Offline

Board footer

Powered by FluxBB