Hello, I would like to redirect to an external page from an image , but I can't redirect from any page of my website. What parameters have I set to make any redirections? How can I redirect from an image? Thanks in advance Eugenia Tenneriello
While an image could contain a redirect, redirects are only for internal links, not external links.
xaosflux
----- Original Message ----- From: "Eugenia Tenneriello" e.tenneriello@criai.it To: "WikiTech-I" wikitech-l@wikimedia.org Sent: Wednesday, March 08, 2006 6:58 PM Subject: [Wikitech-l] How to redirect from an image?
Hello, I would like to redirect to an external page from an image , but I can't redirect from any page of my website. What parameters have I set to make any redirections? How can I redirect from an image? Thanks in advance Eugenia Tenneriello _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
On 3/9/06, XaosFluX xaosflux@gmail.com wrote:
While an image could contain a redirect, redirects are only for internal links, not external links.
If you have access to your Apache's setup, you can add this to httpd.conf:
RedirectMatch permanent "^/redirect/(.*)" http://$1
Then you can define an interwiki link like this:
INSERT INTO wikidb.interwiki /* or whatever database.name it has */ VALUES ('r', 'http://yourhost/redirect/$1', 0, 0);
And then you can do external redirects:
#REDIRECT [[r:path]]
which would redirect to http://path
Redirecting to https would be posible through another pair of (RedirectMatch directive, interwiki link), or changing the above to use
#REDIRECT [[r:protocol/path]]
and redefining the RedirectMatch directive accordingly.
Of course, such redirects can only be edited by using
http://yourhost/wiki?title=MyRedirectedPage&redirect=no
so this setup it's for the (moderately) experienced.
-- /L/e/k/t/u
wikitech-l@lists.wikimedia.org