Redirect an ez sub directory to an external url

Redirect an ez sub directory to an external url

Friday 29 October 2010 4:30:40 am - 5 replies

Author Message

Heath

Friday 29 October 2010 5:37:07 am

I suggest using mod_rewrite or redirect apache configuration.

http://www.google.com/search?q=redirect+mod_rewrite

Cheers,

Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Gaetano Giunta

Friday 29 October 2010 6:03:32 am

The long and complex way is to develop an http redirect operator to put in your template (it should be put in the pagelayout and not in the node template for proper effect).

Principal Consultant International Business
Member of the Community Project Board

Marko Žmak

Thursday 04 November 2010 7:00:30 am

The long and complex way is to develop an http redirect operator to put in your template (it should be put in the pagelayout and not in the node template for proper effect).

Such an operator already exists:

http://projects.ez.no/redirect_operators

I've been using it a lot and it really does the job. Works with both eZ 4 and 3.

And it doesn't have to be included in the pagelayout.tpl, you can put it in node template also, but then you have to specify cache_ttl=0 in that template.

P.S. It can be really useful for redirecting full view of a file to the actual download of the file.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Marko Žmak

Thursday 04 November 2010 7:04:01 am

P.S. Some advantages of the redirect operators:

  • you don't have to hard code the url which redirects - it will work even if you change the name of the object that redirects
  • you can control the redirect using eZ template logic
  • you can have as many redirected object as you wish, without having to add redirects in .htaccess

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Andy Boston

Wednesday 17 November 2010 8:46:12 am

Thanks, I'll give that a go! :)

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.