Where to put version.hfo now?

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
Post Reply
svasti
Posts: 1659
Joined: Wed Dec 17, 2008 5:08 pm

Where to put version.hfo now?

Post by svasti » Fri Jan 10, 2014 10:21 pm

It used to go into
Base_URL/downloads/versioninto/myplugin.nfo

Now, the downloads have moved, what about the the nfo file? It cannot simply move also, as the call continues to look for the old place, e.g.:
http://cmsimple.holgerirmler.de/downloa ... ersion.nfo

How do you guys handle this?

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Where to put version.nfo now?

Post by cmb » Sat Jan 11, 2014 12:41 am

Well, one possibility is to stick with the downloads/ folder just for the version.nfo files (i.e. move everything else to userfiles/downloads/, except for the version.nfo files).

An alternative is to establish redirects, as described in the release announcement of XH 1.6:
copy all images, downloads and media files to the new environment; note that the images, downloads and media folders have to be subfolders of the userfiles folder, so usually you have to copy images/ to userfiles/images/. Obviously this will break existing links to these files; you can work around this by establishing redirects from the old folders to the new one. E.g. for Apache servers you can put the following .htaccess to the domain root (change "xh16" to the folder name of your test installation):

Code: Select all

Redirect /xh16/images /xh16/userfiles/images
Redirect /xh16/downloads /xh16/userfiles/downloads
Redirect /xh16/media /xh16/userfiles/media
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply