7

Not with a tag, but with a PHP snippet you can, you have some options: Using EE's built on function <?php ee()->functions->redirect('{external_link}'); ?> You'll need PHP parsing on, if you want to use the {external_link} tag you'll have to set it to run on Output Location Header redirect. With the above you may get some screen artifacts as ...


4

According to the bug reported by Mark Drzycimski, for those who don't have an Ellislab account, the solution is listed as follows: In /system/expressionengine/libraries/Redirect.php on line 50, change: "<p><a href='".$_GET['URL']."'>".$_GET['URL']."</a></p>\n</body>\n</html>"; to: "<p><a href='".$_GET['URL']."'...


4

Use the Structure global variable {structure:page:uri} which is the same as EE's native "page_url" variable.


3

My friend... I'm afraid your syntax is incorrect. Place this rule after your index.php rewrites (at the end of the standard EllisLab htaccess file): RedirectMatch 301 ^/?$ http://www.example.org/todays-info This is the magic you seek. The second parameter of a RedirectMatch is a regular expression.


3

You need to use %{QUERY_STRING} RewriteCond %{QUERY_STRING} ^option=com_user&view=reset&Itemid=14$ RewriteRule ^(.*) /contact? [L,R=301]


3

Problem solved. If you are already logged in and log in again the return does not WORK


3

Yes! Use the redirect variable in your template. From the documentation: {redirect='news/local' status_code="301"}


2

I know it'd be hacking core, but wouldn't throwing a rel="nofollow" attribute on the anchor negate the effectiveness of this?


2

check out this add-on http://devot-ee.com/add-ons/mo-variables and it's "Page Tracker" variables that you can use!


2

I'm not sure if this works with the {exp:stash:cache} tag or not, but you can try it: {exp:stash:cache name="page" unprefix="my_prefix"} {exp:channel:entries channel="post" disable="categories|category_fields|member_data|pagination|trackbacks" require="yes" } {if my_prefix:no_results}{redirect="404"}{/if} {/exp:...


2

When you use template access restrictions, EE doesn't do a browser redirect to your no-access template (sign-in/index)--it just displays that template in-place. For example, if you browse to /members-only in your browser and that's a template with the access restriction, EE will display the sign-in/index template at the /members-only URL. So, first of all, ...


2

Alternative solution: use a jquery validation tool instead of multiple return options. If all fields have valid solutions (i.e. all are "yes"), then you collect the contact info. If not, they get an error message. There are tons of options if you search for "jquery validation" like this one: http://validval.frebsite.nl/ Define what a "valid" response is, ...


2

According to the docs, you can have a selection option that uses different returns. (Source: http://www.solspace.com/docs/freeform/form/ ) Here's their example: <select name="return"> <option value="application_form/thank_you"> I will pay at the door </option> <option value="application_form/payment"> I ...


2

The problem is that the redirectee plugin use the native PHP header function which not support the 404 code. In fact it is a little bit strange to send a 404 with the header. Therefor you have to use a 302 code, the 404 page will send a 404 code on his page. As for redirecting with the 404 code, you have the think of this QA: User: Hey, do you have ...


2

The loop occurs because you're testing again and again and again... Try this: {exp:browser_sniff available_languages="en|zh"} {if browser_sniff_negotiated_language == "zh"} {if browser_sniff_negotiated_language != "{segment_1}"} {redirect="zh/{uri_string}"} {/if} {/if} {/exp:browser_sniff} update Since Transcribe ...


2

The only thing i see from a security standpoint is EllisLab considers php in template a bad practice. If this where me I would create a small plugin that would render your PHP for you. and pass the segment through a parameter. That would then redirect the user. To create a plugin you can use my plugin starterkit. 1.) Create a folder with lowercase plugin ...


2

Why just using either snippet or direct put to template meta-part instead of using PHP in-template if editors put full URL? Something like: {exp:channel:entries} <meta http-equiv="refresh" content="0; url={external_link}"> {/exp:channel:entries}


2

It's a simple matter of adding the robots meta tag to the templates which you don't wish to be indexed. Then use Google's Webmaster Tools to remove those URLs from its index. You could create a 'dynamic' robots file that applies only to your subdomain by using an htaccess rule like so: (from http://moz.com/community/q/block-an-entire-subdomain-with-robots-...


2

Well, you have a conditional that must be satisfied in order to achieve your redirect. In order to accommodate your requirements, you must address every condition and you are not (though you may think you are!). You see, if you don't set an expiration date, that value should output as empty. Think empty... zero... ExpressionEngine is looking at that ...


2

Try using {page_uri} instead of {page_url} The redirect tag is looking for a relative, not absolute value.


2

Not sure it's really possibly without editing core files at this point. I don't have time to test this, but I'll throw out a small guess based on hooks. For login, you'd need to try one of these hooks: member_member_login_multi($hook_data) member_member_login_single($hook_data) member_member_login_start() I'm guessing the first two hooks occur after the ...


1

The problem you're facing is related to the fact that the Channel Module doesn't look for entries on all segments by default. Imagine 9 segments. The module would have to test every single segment until find one entry matching it. This could make the system really slow. So, by default, it just looks for entries matching the most common used segments for it: ...


1

Brandon is correct - EE does not like a hash in a redirect URL. Instead, try using flash data for this. $this->EE->session->set_flashdata('selected-tab', 'settings'); $this->EE->functions->redirect(BASE . AMP . 'C=addons_modules' . AMP . 'M=show_module_cp' . AMP . 'module=module_name_here'); Then, in your module code: if($tab = ee()->...


1

One quick way you can tell if it's your .htaccess is try updating it to the following. I got this from Nicu at EE Zoo and have been using it for all of my builds here on out: # Apache configuration file # httpd.apache.org/docs/2.2/mod/quickreference.html # Note .htaccess files are an overhead, this logic should be in your Apache # config if possible: httpd....


1

I don't know if it's also in the bug reports, but there is a note in the changelog for 2.9.1 : Fixed a bug in the 404 redirect behavior when used inside a no_results tag on an embedded template. This might be your issue if it works as expected outside of an embed.


1

Did you actually mean this? RewriteCond %{QUERY_STRING} range.php?type=baropt&item=01 [NC] RewriteRule ^(.*)$ http://domain.com/range/bars/led-bar? [R=301,L] You should use RewriteCond, not RewriteRule is first line, as it'a conditional that applies to the rule, the rule itself is in second line. Also replace &amp ; with simple ampersand (unless ...


1

With Justin pointing me in the right direction, I was able to figure out the PHP error for no object created (yet) {exp:channel:entries channel="products" limit="1" require_entry="yes" url_title=" {segment_2}"} {if no_results} <script type="text/javascript">location.href = "http://"+document.location.host+"/products/noresultsfound/...


1

EE is going to try to figure out what content to serve automatically unless you specify what content to grab. So when you have a URL that has a valid URL title like www.example.com/products/g3-product EE will recognize that the last segment is a valid URL title and show that content. When you have a non-valid url_title like www.example.com/products/...


1

Shorn I have tested this and it works great. However because of the way the {redirect} variable works you cant use {username} in the redirect variable because it will blow up the URL so I have accomplished what you are needing with a little bit of php: 1.) In the CPanel go to Design>Template Preferences and click on the desired template group and template ...


1

Try to change the Control Panel Session Type to Cookie only.


Only top voted, non community-wiki answers of a minimum length are eligible