EllisLab text mark
Advanced Search
     
Simple http redirect
Posted: 26 September 2010 11:52 PM   [ Ignore ]
Joined: 2010-09-07
27 posts

I am fairly new to EE and have an easy question.  I want to post a page that simply redirects my user to another website.  We just switched our website to EE and We have a remote access server that our employees use and it works off a url from our old website that uses something like this..  http://www.mydomain.com/remote redirects to https://myvpn.mydomain.com On ou.r old website this was accomplished by a simple html page that used this piece of code.

<meta http-equiv=“Refresh” content=“0; url=https://myvpn.mydomain.com”>


Thanks for your help.

 
Posted: 27 September 2010 12:11 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2009-02-10
170 posts

Is the url in the redirect dynamically created or is always the same? You could try a PHP redirect pasted above the HTML opening tag.  Make sure to enable php in your template prefs.

<?php

   header
'Location: http://www.yoursite.com/new_page.html' ) ;

?> 

Not necessarily the best/only option but should work for you.

Also depending on how you use membership and set up your templates you could use the native template access restrictions and redirects built into EE.
http://ellislab.com/expressionengine/user-guide/cp/design/templates/template_access.html

Later,
Bryan

 Signature 

http://www.bryanrankin.com

 
Posted: 27 September 2010 09:53 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2002-04-29
26055 posts

Thanks for the assist, Bryan.

cptkirkh, does that advice help?