Skip to main content

Questions tagged [redirection]

Redirection in Drupal means sending the users to a different page.

Filter by
Sorted by
Tagged with
0 votes
2 answers
282 views

Redirecting user after login when using the ip_login module

I'm trying to show a different frontpage to users of a specific role, using the Front Page module (version 6.x-2.0-rc1) in alias mode. This works fine for users that are already logged in, but the ...
Mad Scientist's user avatar
3 votes
1 answer
716 views

Redirect anonymous user to login in custom module

In a custom module, I'd like to redirect anonymous users to the login page. After a successful login the user should get to the page he intended to see. I tried the following code. This gives me the ...
BetaRide's user avatar
  • 5,378
1 vote
3 answers
1k views

How do I redirect users to the page they were before logging in to my site?

I´ve got a Drupal site that after the user logs in it is redirected to his profile. I want to create a specific rule so people from specific characteristics can retur to the page they were before they´...
Rosamunda's user avatar
  • 1,289
1 vote
1 answer
1k views

How to have different URLs for microsites?

First of all, thanks for anyone bearing with me with this issue. I know that I really should start looking into how Apache settings work etc., but first of all, I would like to get this working. (Plus ...
Scorchio's user avatar
  • 1,107
2 votes
1 answer
2k views

How to redirect after submitting a multi-step registration form?

I want to redirect after submitting multi-step registration (Two step registration), and also I want to prevent the automatic logging to drupal website after registration completes. I tried the ...
Ashok KS's user avatar
  • 391
1 vote
2 answers
414 views

Detect if its first time that user accesses the page

How can I detect if users access a page for the first time? I want to redirect them to their language using GeoIP.
ram4nd's user avatar
  • 1
3 votes
2 answers
926 views

Why delete old redirects?

I have many, MANY redirects (thousands). Most just redirect the system (node/12345) url to the friendly one - but we also have a lot of others. I have Drupal set to never delete old redirects after ...
Mike's user avatar
  • 755
3 votes
1 answer
149 views

Add link to topic list after new topic or comment submission

I would like that, when users submit a new topic or posts a reply in a forum, they would be redirected to the topics list. How can I do this?
chris's user avatar
  • 155
0 votes
1 answer
1k views

Error 310 after Drupal installation

I've installed a fresh copy of Drupal 7.8 on an FTP server. For some reason, I am unable to run install.php, receiving the error: Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many ...
Boris Litvinsky's user avatar
0 votes
1 answer
67 views

How can I direct the user to a different page on a multisite installation based on which subdomain they go to?

I have a site, let's call it www.example.com, and I'm going to create subdomains for it with the same Drupal installation on every subdomain. I can do that. However, when someone goes to a subdomain, ...
blac hole's user avatar
0 votes
1 answer
370 views

How to redirect all 404s to the same path on a different server

I want to redirect all 404 errors on my site to the same path on a different server. For example: http://drupal.example.com/url/not/in/drupal should be redirected to http://othersite.example.com/url/...
Craig's user avatar
  • 103
1 vote
2 answers
1k views

Drupal: on node save, redirect user to homepage?

How can I redirect the user to the home page (or another drupal page) on node save instead of them seeing the saved content?
user avatar
0 votes
2 answers
2k views

Optionally redirect a content to another url?

I'm using drupal 7. I have a content type called News Item. On my home page, I have a block+view that lists the most recent news items. What is shown is the title of the news item, a brief ...
learningtech's user avatar
  • 1,491
0 votes
1 answer
688 views

Drupal multisite configuration with a single database and redirection based on IP

I need to implement multi site configuration in Drupal 7. I have a Drupal code base called example.com and two subdomains sub1.example.com and sub2.example.com in sites/ folder. I am using a shared ...
neeraja's user avatar
  • 39
2 votes
1 answer
530 views

How do I redirect a Read More link to another URL in Showcase Image?

When creating a showcase image for my homepage, I would like to redirect the Read More link to another page in the site, instead of the default link back to the image. Is it possible? Or do I just ...
CD2012's user avatar
  • 81
1 vote
1 answer
1k views

htaccess settings to allow access to special non-drupal page

I have a properly working Drupal 6 site, at the webroot of my server, which can be accessed by www.mysite.com or by mysite.com. I have some special html files (not part of Drupal) that can be ...
Steve Rothman's user avatar
1 vote
4 answers
281 views

Any way to have "Path Will Be Viewed" trigger?

I would like to restrict certain roles from visiting certain pages, ideally by using Rules. I am able to do this with Nodes, however for Pages such as a Views Page, I can't see any way of triggering ...
DanH's user avatar
  • 1,613
2 votes
1 answer
5k views

nginx sets content-type text/html on redirect

I set up nginx as a reverse proxy for Drupal. Static files are served from a different domain. It works well, imagecache files are generated well, too. But the problem is: when the derivated image ...
jcisio's user avatar
  • 1,447
3 votes
2 answers
4k views

Does $form_state['redirect'] require a rebuild?

I'm working on a multi-step form, and one of the last steps is a confirmation page with a 'Continue' and 'Cancel' button. If they hit cancel, I want it to go to a whole other page. I have a custom ...
user1359's user avatar
  • 3,919
2 votes
2 answers
2k views

Drupal multiple node url aliases

Is it possible to take a field from my node and create a url alias from the content of that field? Say I have a node type article. This gets its normal url via pathauto, but I also wish to be able to ...
schwifty's user avatar
5 votes
2 answers
5k views

How to redirect the user to a page and show a message on the admin overlay (using drupal_set_message and drupal_goto)

I need to redirect the user to a destination and show a confirmation/error message. How can I do that? This is my code: watchdog('webform', 'The user @user has been successfully created', array('@...
Nicola Peluchetti's user avatar
3 votes
5 answers
3k views

How to redirect anonymous users to a login page?

I have several type of nodes for content that is contributed by authenticated users. I would like the links to be visible to anonymous users but if they click the link to have it redirect them to the ...
Adam S's user avatar
  • 5,031
3 votes
4 answers
1k views

Dont want to redirect after registration, possible?

I have a lightbox pop up when a link is clicked to sign up for the site but, after signing up i don't want them to redirect to their user profile page, I need them to stay on the same exact page. Is ...
delboud's user avatar
  • 195
1 vote
2 answers
335 views

Best way for implement 'Site Gate'

I try to add 'site gate' to http://bartenderlab.it. It's alcohol content so people under 18 are not allowed to view this site. I created module with hook_init: function gate_init() { $curr_uri ...
Codium's user avatar
  • 4,955
5 votes
2 answers
362 views

Build StackExchange-style url's

I'm looking for a way to build what I call 'StackExchange style' url's with Drupal 7. In my definition, that means: A node has a path alias containing both a unique identifier and the node title. For ...
marcvangend's user avatar
  • 14.9k
1 vote
1 answer
46 views

Auto node redirct depending on a cck field's content

When a visitor goes node/123, I need them to be redirected to the url that is specified in that node's cck field. I know there are plenty of modules that do redirects, but I need this specific type ...
Joe's user avatar
  • 201
4 votes
2 answers
3k views

Redirecting from example.com to example.com/drupal

I have Drupal 7 installed in a ./drupal directory in my web server (shared host). I would like www.mysite.net to be redirect to www.mysite.net/drupal in a transparent way for visitors. They should ...
a.b.d's user avatar
  • 215
14 votes
4 answers
17k views

Redirect to a custom page after a node has been added or edited

Using hook_form_alter, how can I redirect a user to a a custom page after creating or editing a node instead of the node that was created or edited? The current code for hook_form_alter() is the ...
Citricguy's user avatar
  • 7,924
4 votes
2 answers
185 views

Global redirect edit link

I am using the global redirect module. This makes /node/1 goes to my path auto /node/clean-title. If I goto /node/clean-title/edit I get a 404 error. If I go to /node/1/edit. How can I get it so that /...
Rod's user avatar
  • 169
20 votes
3 answers
19k views

Form Redirect not working if 'destination' is in URL

In one of my forms, I'm trying to set a $form_state['redirect'] so the form will go to that destination after the user clicks one of the action buttons. If I inspect $form_state['redirect'] both ...
geerlingguy's user avatar
  • 5,483
2 votes
1 answer
360 views

Preserve Current Paths before rolling out new Pathauto Alias

I'm just about to roll out a new Pathauto Alias to include a new taxonomy term, which will modify about 1000 nodes. Is there a way to preserve the current path aliases I have now, and then bulk update ...
DanH's user avatar
  • 1,613
1 vote
1 answer
171 views

Force redirect if a valid taxonomy term is not at the start of the URL?

As a follow on from this question I am trying to prepend all URLs on the site with a taxonomy term. The term itself is handled by a custom module for the most part, however elements of the site such ...
DanH's user avatar
  • 1,613
2 votes
2 answers
469 views

Redirect users from authentication URLs to signup page

I'm using Drupal 6. I want to redirect users from /user/login, /user/register, /user to /sign-up if the user is the anonymous user. This page would show both login and register forms together. The ...
Fidelix's user avatar
  • 357
5 votes
4 answers
3k views

Login fails due to loop on localhost. Any ideas why?

I have git cloned a site and used Backup and Migrate to bring the database over the the local host. Working on the remote host the login works fine. Not locally. Well not anymore it worked for about ...
winchendonsprings's user avatar
0 votes
1 answer
815 views

301 redirecting broken links after moving Joomla! to subdomain and giving parent domain to Drupal7?

I've recently started doing way more Drupal development than Joomla!, and given I use my personal website as a testing platform that changes about once every few years, am trying to migrate it from ...
aendra's user avatar
  • 1,755
2 votes
2 answers
2k views

Redirecting a URL

I'm facing the following challenge: I am setting up a homepage for our science department using OpenScholar, which is based on Drupal 6. From what I understand, it uses vsites so that many users can ...
packoman's user avatar
  • 121
1 vote
2 answers
2k views

301 redirect one site in multi-site installation

I have a drupal 6 installation that is hosting numerous sites. They're all located in the sites/ folder. Like: sites/site-1 sites/site-2, etc. One of these sites has been discontinued, and we need to ...
oranges13's user avatar
  • 725
13 votes
6 answers
16k views

Redirect user after node add/edit

I want to redirect users to a custom page, after they create a node or edit it.
ousneo's user avatar
  • 325
5 votes
1 answer
504 views

How do I include ? and = in a form redirection?

I have a form and I would like to take the value from it, and use it as input for a page view which is created using exposed filters. I have created a submit handler for my first form. I then redirect ...
chipcleary's user avatar
3 votes
1 answer
4k views

What is the difference between "Path redirect" and "Global Redirect"

I read the description of Global Redirect and Path redirect, but I still don't understand what the difference between the modules is, and why Path redirect recommends Global Redirect. What is the ...
apaderno's user avatar
  • 97.6k
1 vote
2 answers
259 views

What's wrong with this code?

function welcome_menu() { $item=array(); $item['welcome'] = array( 'title' => 'welcome', 'access callback' => 'welcome_init', 'page callback' => 'welcome_test', 'type' =&...
enjoylife's user avatar
  • 3,788
3 votes
2 answers
3k views

Redirect to an external site when accessing the page of a node meeting a set of condition

I need to redirect users to an external website when they access the node view page at node/%node of a node meeting some conditions. What would the proper/best way to achieve this (using code) be?
Pierre Buyle's user avatar
  • 11.4k
8 votes
4 answers
15k views

Is it possible to redirect after "pushing" a file to the user?

I've got a setup where a site generates internal analytics about site usage. Users are able to request a download of their personal analytics, and because this information is sensitive I do not create ...
Blake Senftner's user avatar
5 votes
4 answers
917 views

How to get the content owned by the currently logged-in user?

A user is the owner of only one node, and I want to redirect the user, at login time, to his only owned node. How can I get the node content if I know only the logged-in user?
EKK's user avatar
  • 4,350
25 votes
14 answers
13k views

How do I hide the default page /node?

Drupal out of the box comes with a page (which is the default homepage) that is assigned to the node path. How do I avoid users reach it, and redirect them to the actual homepage of the site?
wiifm's user avatar
  • 5,290
6 votes
7 answers
12k views

How to redirect toward a specific node from front-page in Drupal 7?

I have a multi language site made in Drupal 7. And I want to check if I am on the front page then if true to redirect the user to a to some specific node. I have tried different methods: to create ...
EKK's user avatar
  • 4,350
4 votes
2 answers
678 views

How To Redirect to a Named Node upon Registration

Given a D6 site where users must confirm their email address, I would like new registrants to be immediately redirected to a Page node which explains the email verification process. I attempted to ...
Codeblind's user avatar
  • 558
7 votes
2 answers
4k views

Making drupal_goto Ignore ?destination=foo

I frequently come across cases in my Drupal 6 sites where a user might encounter my module's pages with the ?destination=foo querystring appended to the URL, from previous interactions on the site. ...
anschauung's user avatar
5 votes
4 answers
774 views

Redirect on Login?

I have tried making this a rule as well as used hook_user with no luck. It definitely gets inside of the login case (had a watchdog log), but the redirect doesn't happen and they are still sent to /...
Kevin's user avatar
  • 27.9k

1
13 14 15 16
17