Questions tagged [redirects]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8
votes
1answer
10k views

301 Redirects Appending Query String?

First time this has happend to me and I can't figure out how to fix my 301 redirects. The redirect is appending the rule to the end of destination/new url: Redirect 301 /products.htm http//www.domain....
6
votes
2answers
292 views

Exclude ?URL redirect from site 404's

I'm administering EE site with forum. On the forum, there are many redirects in the form of http://domain.com/?URL=http://third-party-site.com/page.html Recently, Google started returning 404 for my ...
5
votes
2answers
326 views

Using switchee to redirect to 404 if no category exists

I'm interested in redirecting to a 404 if no category exists at the URL, for example if category xyz doesn't exist at; mydomain.tld/shop/category/xyz I'm using Switchee and a case value for category ...
5
votes
3answers
5k views

how can I redirect a homepage depending on the browser language settings

I would like to know what's the best method to redirect a site depending on the browsers language settings. I want to redirect the following browser locales to /es: es-ar, es-co, es-cu, es-do, es-...
4
votes
4answers
3k views

How to stop external site redirect hijacking?

We are recently seeing a number of external sites trying to leverage the core of EE to use our site to force referrals that look like they are coming from our domain. My assumption is they are trying ...
4
votes
2answers
328 views

file modal, doesn't act on any search/filtering

IMPORTANT: It turned out that this question couldn't really be answered based on the info I had provided, and it wasn't possible for me to provide enough info to make it answerable. Tom provided the ...
3
votes
1answer
304 views

“Closed” status pages urls still exist - How do I make these display the 404 page instead?

My client sometimes needs to set a page as "Closed", but the url still gets traffic, and the users will now see a broken template page. I would like to redirect the user to a 404 page upon visiting a ...
3
votes
3answers
230 views

Front end login redirect to {page_url} with structure, how to make this work

EE 2.7.2 Structure 3.3.13 I've got a site where I have a front end login form that is on all pages as a modal when clicking the login link in the header. Everything works fine, however for the ...
3
votes
5answers
601 views

Strange Stash & redirect issue

I'm having an odd issue with Stash and a 404 redirect. When an entry isn't found the "layout" template is getting rendered twice around the main Stash content. Anyone seen this before? I can kinda see ...
3
votes
1answer
263 views

Handling no results redirect with Stash

This is more an A than a Q. Last week I ran into no results / redirect problem with Stash and more precisely the EE's parsing order. The solution below worked for my case. I don't take credit for it ...
3
votes
1answer
215 views

Performing an actual redirect to 404 page

I'm having no trouble displaying a 404 page when using {redirect="404"}, but is there any way to actually redirect to my 404 page? ie. changing the url to /404 ? I've seen Ryan's blog post, but he ...
2
votes
3answers
2k views

Why doesn't 404 kick in when a bad URL is entered?

Most people don't want to get a 404 page, however, I am having issues with a site where 404 pages don't show when you enter an erroneous URL. Example: http://livefreehomehealthcare.com/products/...
2
votes
2answers
200 views

Best Solution for redirects if you have to move templates / URL structure

If you have to change your url-structure (and therefore in ee-templates) from let's say «opinion/detail/url_title» to «blog/article/url_title» — What's the best solution (EE-functionality, htaccess-...
2
votes
1answer
50 views

Redirecting Joomla Links to New ExpressionEngine Links Fails

I'm running into an issue where 301 redirects on site I switched from Joomla to EE are not working. The link style on the old version of the site is: http://example.com/index.php?option=com_user&...
2
votes
2answers
3k views

Trying to redirect a page to HTTPS using .htaccess, getting “too many redirects” error

Ugh, seems like I'm having a lot of htaccess issues lately. Recently moved a client site to new hosting from the cient's internal server. Their IT had setup SSL and updated the .htaccess to redirect ...
2
votes
4answers
9k views

Setting up page redirects

I've got a client who wants to use short URLs of dynamic entries for marketing literature So clientdomain.com/events/event-type/full-event-name Would be clientdomain.com/short-event-name I've been ...
2
votes
2answers
298 views

Clean 301 redirects using an .htaccess that also removes index.php

I've got a somewhat standard .htaccess for removing index.php from my EE1 URLs: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^/$ [NC] RewriteCond %{QUERY_STRING} ^(utm_source=.*) ...
2
votes
2answers
72 views

Old URLs pointing to the same product name

As you know from previous posts, that I am new to EE and I thank you for your help. Here is a little background: You know the "URL Title" field and how that can produce part of the URL, I was told ...
2
votes
1answer
227 views

stash:cache and no_results inside channel:entries does not redirect

This seems to be linked to the issue discussed on this question however it's using cache tags instead of parse and I'm redirecting to a 404. My code is as follows: {exp:stash:cache name="page"} {...
2
votes
1answer
72 views

how to redirect back 2 pages after add to cart in Cart Throb

I am trying to redirect a user back 2 pages after they add an item to the cart. Is there any plugins or dynamic methods that would make this work?
2
votes
1answer
1k views

Alternate control panel URL

Client has asked (insisted) that the site and the control panel live on different URL or subdomain. I've googled about and had a look.. I can't find much info. Before I start hacking the core.. any ...
2
votes
2answers
141 views

How to get attempted url before access restriction?

this might be a simple fix, but it certainly doesn't seem to be. I have built a EE-based web application, and as is part and parcel with web applications, users are required to log into the system. ...
2
votes
2answers
456 views

Redirect 301 if url title present

Let's say we have a url: http://example.com/section/my-url-title we want to enure that the {url_title} is not used in the URI. We have changed all template tags to point to the {entry_id} instead. ...
2
votes
2answers
2k views

.htaccess redirect loop error

htaccess : <IfModule mod_rewrite.c> RewriteEngine On # Removes index.php from ExpressionEngine URLs RewriteCond $1 !\.(gif|jpe?g|png)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f ...
2
votes
2answers
299 views

ExpressionEngine 1.x - All pages redirecting to homepage

I'm sure this one is going to be pretty simple - but I'm banging my head against the wall here. It's been a while since I've worked on a 1.x build. I have a client site which was just migrated to a ...
2
votes
1answer
1k views

How do I setup Automatic 301 Redirects on url_title change

EE gives clients great control over the url_title of the entry. This is great for publishing new entries, and necessary for editing entries in case of mistakes or any other "good" reason to change the ...
2
votes
1answer
307 views

Remove 'home' folder from home page url

I have a url like this www.example.com/home/ and I cannot get rid of the home folder from the URL. The best I can do results in which causes the page to crash. I've been working with the htaccess ...
2
votes
1answer
360 views

redirect in add-on module redirecting me to admin control panel login form with # appended in URL

$this->EE->functions->redirect(BASE . AMP . 'C=addons_modules' . AMP . 'M=show_module_cp' . AMP . 'module=module_name_here' . '#tabsettings'); EE v2.9.2 I want to redirect the user after ...
2
votes
2answers
63 views

Redirect to outside server

I am trying to redirect a template to an outside website in EE2, I have tried this: {redirect='http://other_website.com/whatever/12/'} It puts the url of the host before the url I put there ...
1
vote
3answers
719 views

Freemember: Redirect user to previous page after login

Is it possible to redirect the user to the previous page after login, without needing to use PHP? Note: I'm not using the default login, i'm using the Freemember add-on.
1
vote
2answers
4k views

Using {redirect=“”} to redirect to an external website

We're trying to use redirect to allow our website editors to link to external pages, however when we use: {exp:channel:entries} {redirect='{external_link}'} {/exp:channel:entries} It just takes ...
1
vote
2answers
501 views

Conditional redirect after Freeform submission

I am having trouble with my form. I have four questions and if any of them are NO, then I need the user to be directed to a "not eligible" type response. However if all of the answers are YES, then I ...
1
vote
2answers
93 views

Affiliate Links Management Addon?

I want to manage all my affiliate links in one place, e.g.: mydomain.com/link1 -> redirects to aff. link 1 mydomain.com/link2 -> redirects to aff. link 2 Is there any addon that allows the ...
1
vote
1answer
6k views

How to redirect empty url to a specific page

I have an event website and I want visitors to www.example.org to be redirected to www.example.org/todays-info "todays-info" is an entry, and I have "Enable strict URL'S" set to No so that I can ...
1
vote
1answer
930 views

login form always returns to home page

Problem solved. If you are already logged in and log in again the return does not WORK using this form the return is always redirected to the home page but it should use the redirect tag. {exp:...
1
vote
2answers
145 views

404 redirects and google analytics question

I read this article and setup my single entry pages with the 404 redirect conditional. I also setup the 404 page in the CP and set Strict URL's to YES. When I try and go to a broken link I do get ...
1
vote
1answer
118 views

Redirect adding absolute path when using {redirect=“{page_url}”}

I recently upgraded to EE2 2.11.7 and I was using a redirect to automatically redirect user if on search results if there was an exact match. This was working fine for me previously: {if ...
1
vote
1answer
65 views

Simple redirect with Redirectee doesn't work

In my Templates Global Preferences I've set the 404 page to go to pages/404.html template. In that template is a redirect to the 404 page: {exp:redirectee:redirect status="404" url="/404/"} It doesn'...
1
vote
1answer
4k views

“Too Many Redirects” browser error after adding some stuff to .htaccess when trying to view control panel login page

RewriteCond %{HTTP_HOST} !^\.site\.com$ [NC] RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L] I added this to my .htaccess file to remove the trailing slash and it has caused a "Too Many ...
1
vote
2answers
106 views

Redirect - Even though redirect code is absolute its handled as relative

On my search results page I am testing to see if there is only one result and if so redirecting the user to that result page using the redirect tag. However, even though the path I am redirecting to ...
1
vote
1answer
107 views

How do I stop Expression engine from redirecting blog.mydomain.com to mydomain.com/blog?

Please help. I want to install a wordpress blog under the URL blog.mydomain.com but this seems to be getting in the way.
1
vote
1answer
156 views

301 Redirect with Domain Alias

Hi and thanks in advance for any help! Our main domain is ecologyproject.org, which contains information for all of our program sites. We have purchased other domain names, specific to our program ...
1
vote
2answers
651 views

Why doesn't {if no_results}{redirect=“404”}{/if} return a 404 header?

Under Design > Templates > Global Template Preferences I have Strict URLS set to yes and I've defined the 404 page (It lives at /errors/404). We're running EE 2.8.1 and PHP 5.3.27 Something like ...
1
vote
3answers
355 views

How do I redirect from a User Message Template

I am trying to figure out how to redirect users once they click on the Mailing List confirmation email link. Currently, when someone submits their email for inclusion in a mailing list, they get an ...
1
vote
1answer
295 views

Weird issue with 404 redirect and no results

I'm having a strange issue (possible bug?) with the following (simplified) code {if segment_1 == ""} //Do Stuff// {if:else} {exp:channel:entries limit="1" status="Open" url_title="{segment_1}" ...
1
vote
1answer
214 views

Specify redirect after password reset

Is there any way to specify which template to redirect to after a user resets their password? Currently, it takes them back to my reset password form, which is odd.
1
vote
1answer
140 views

Extension Development : Redirect on error

I'm developing an extension that uses the member_update_end hook. This extension requires communicating with a 3rd party API, which I can't guarantee will always be active. As a side note, the hook ...
1
vote
1answer
118 views

CartThrob Price Modifier - Hide form if no options available

I have a channel to create an event. I also have a CartThrob Price Modifier field to add tickets if they are available. On the single entry page, I only wish to show the exp:cartthrob:...
1
vote
2answers
350 views

Redirect to custom error page after user fails to log in

When a user tries to log in and fails because the username or password is incorrect, he is redirected to the ugly EE error page saying "The existing username and/or password you submitted are not ...
1
vote
1answer
673 views

301 Redirect URL Appending Query String

From yesterday, I'm trying this 301 url redirect but its not working as expected. Please help me with this. here is the .htaccess file code. Options +FollowSymLinks +SymLinksIfOwnerMatch -MultiViews ...