Redirects the user to a specified absolute URI.

learn more… | top users | synonyms

0
votes
0answers
21 views

Capture the content of a second page to an output buffer

I have plugin with the following admin action which allows me to send the contents of a specific wordpress page to a registered user via email. The code was working perfectly, an email was sent and ...
0
votes
0answers
47 views

Redirect to Theme my login profile

I would like to redirect admin's editing of user using path "user-edit.php?=....", and redirect to mydomain.com/your-profile/ : "Your profile" is the profile created by the theme my login plugin ...
0
votes
0answers
19 views

Redirect to specific page

I am using Wp Store Locator plugin.And I have Modified it according my need.But I am stuck in redirection. Basically this plugin works with short code.So at the time of listing my URL is like that : ...
1
vote
1answer
42 views

Wordpress HTTPS redirect loop

I've been struggling to get HTTPS functional on my site for over ten hours now. I've got severe headache trying to set it up myself. I want you to understand that I tried several different ways to ...
0
votes
0answers
18 views

If Specified Page then Redirect Elsewhere in Plugin

There's a few parent pages that only exist for URL purposes, but the actual page themselves need to be redirected to the home page since they're blank. I'm trying to make a simple plugin that will ...
0
votes
1answer
55 views

Creating intro page in wordpress

I am trying to create a very simple "intro" page in wordpress which will display a 5 seconds video introduction and then will redirect to the homepage automatically. I saw that there are many plugins ...
0
votes
1answer
28 views

A good hook to check authorization and redirect?

It seems strange to put a redirect in a template page, because so much of the page has already been built by the time you reach a custom page template. I'm wondering what is a good action hook to use ...
0
votes
0answers
32 views

Redirect missing pagination to base page

I have a strange problem with wp_redirect that I can't seem to solve myself. I'm trying to redirect previously existing pages back to the root of the page so: ...
0
votes
2answers
28 views

All links in WP blog redirect to main non-WP site

I worked on a Drupal site for a client, but he wanted to keep his blog on WP, so I manually created a 'blog' folder on the root of the Drupal site and moved all the WP content there. I uploaded the ...
0
votes
1answer
22 views

Redirect to Page URL for non-members

My membership plug in won't let me re-direct custom post type archive / taxonomy URLs to a non-member page if the user requesting access is not logged in or not a member. So, I am trying a hack to ...
0
votes
0answers
50 views

force login and redirect to custom login page

I am really desperate, looking for a solution for days now. I need to achieve: restricted access for logged in users only not logged in users need to be redirected to a custom login page I am on a ...
0
votes
1answer
40 views

Redirect loop when forwarding to mobile site

I have successfully redirected my page to m.example.com from example.com when i open in mobile environment with this code in functions.php add_action('template_redirect', ...
1
vote
1answer
366 views

Redirect if not logged in?

I've tried this to redirect people who aren't logged in to certain page. It ultimately shouldn't matter what front end page they visit, but should redirect to whatever page is chosen as the landing ...
0
votes
1answer
40 views

Set a variable to using in redirected page

I need to set a global variable that will be used in the page set on wp_redirect global $open; $open = FALSE; function open_menu($user_login) { global $open; $open = TRUE; ...
0
votes
1answer
24 views

Which method to use when deleting posts from the front-end

I am trying to enlist all my posts on the front-end along with delete and edit links (using the shortcode API). I am having difficulty with the delete links. To me the most obvious way to handle ...
0
votes
0answers
46 views

Redirecting sub-domain to main domain has incorrect URL on subsequent pages

I just redirected my sub-domain, www.simco-apts.com/testsite to takeover my main domain, www.simco-apts.com. While this works for the homepage, all other links/pages contained within the site add ...
0
votes
1answer
760 views

Why does enabling Permalinks make pages not found?

I'm new to Wordpress and am creating a site using v3.9.1 of WordPress. When I create a new page, I can see it in edit mode, but the URL it is supposedly creating is not found when permalinks is used, ...
0
votes
0answers
33 views

Create a constant download link that always points to latest attachment

I plan to have one attachment per post and the attachments will often be receiving updated versions with different file names. I have an issue where users copy and paste the file url and send it via ...
0
votes
1answer
83 views

Redirect if string found in URL

I'm trying to redirect non-logged in users to the login page when viewing any pages relating to a plugin. My code is working fine when I specify which pages they can't view, but I'm trying to pull in ...
0
votes
1answer
8 views

How to remove post redirects

I recently installed a plugin called "Q and A FAQ and Knowledge Base for WordPress" Turns out it was lacking in the features I needed so I trashed every faq I had created and then deactivated the ...
0
votes
1answer
144 views

Troll the hackers by redirecting them

My website is getting somewhat popular, and with the it's increasing popularity there's an increase in the hackers. Last night I visited my security logs and found that everyday approximately 10 ...
0
votes
0answers
57 views

Members only Passthrough

So I made a members only site with wordpress by redirecting everything to the homepage and adding a registration/login page to my homepage. This was added as a plugin: /* Change Login URL */ ...
0
votes
1answer
320 views

Redirect after successful registration with fronted registration form

I am trying to redirect users after failed and successful registrations and logins. Everything works fine, except the redirection after a successful registration. Right now, I get redirected to ...
1
vote
1answer
41 views

Multiple portfolios and single item in two of them (ideas?)

I’m creating a theme at the moment and has come to a point to decide what is the best solution to have implemented for a theme with multiple portfolios. If there is a project that is in the two of ...
0
votes
1answer
96 views

A blank page is shown after I add a Function

I am redesigning a template. So I am trying to show a holding page till the redesign process is done. I ever used following function for the purpose on many other projects and it's redirected to the ...
0
votes
1answer
149 views

Redirect Attachment Page to Attachment

I'm trying to change my attachment page to just automatically redirect to the attachment. Here's what I've tried: Get attachment ID and redirect to that URL: $urlArr = ...
1
vote
2answers
397 views

redirect does not work in ajax function

I'm using ajax to post the form data. In the end I want to redirect to homepage. I'm trying following code, it does not work. It returns error 302. How can I redirect in the following function? ...
0
votes
3answers
539 views

Getting redirect to happen before header output

Anyone know of a way to trick WordPress into doing a header location redirect. I have to check whether users are logged in or not, and if not redirect them to our organizations authorization system ...
0
votes
1answer
53 views

HTML Redirect to WP pages

I have some predefined links that I need to redirect to real URLs within my WP install. I have NO CHOICE but to use these URLs provided to me, unfortunately. The format is: ...
0
votes
1answer
40 views

Some Pemalink problems, probably caused by wrong .htaccess configuration?

I have import on my local webserver a backup of a website made using WordPress but I am finding some difficulties with PermaLink configuration The main problem is that if I use the permalink setted ...
0
votes
0answers
142 views

url_to_postid redirected posts

i wanna url_to_postid some urls, it work pretty fine but when it come to auto-redirected posts it fail to return postid. here is my example urls: http://animup.net/anime/kuroko-no-basket-2/ auto ...
0
votes
0answers
73 views

wp_redirect on multisite

I have a multisite setup with subfolders (rather than subdomains). There are 3 sites installed which will use the same theme but in English, French and Dutch. I want to use wp_redirect in the header ...
0
votes
2answers
76 views

Redirect returning users to a certain page?

Is there a way to redirect users returning to the site who are already logged in? Assuming something like: function returning_redirect() { //code here } add_action('auth_cookie_valid', ...
0
votes
1answer
75 views

Redirect to URL if x number of days passed

Let's say I have this URL: www.example.com/myCPT/post, here I want to check if 3 days has passed since the post was created to redirect to www.example.com/myCPT/post/stats. In this 3 days time frame ...
0
votes
2answers
452 views

wp_redirect hangs, but returns true

I have no idea what I'm doing wrong, but I can't get the wp_redirect to actually redirect the page. I enabled the wp_debug to check for "header already sent" errors, but nothing. I installed the ...
0
votes
2answers
75 views

Controller functionality - User not logged in/ redirect to registration page (not wp_login)

I have a site here... If a user clicks on Submit an Event or Send an Article, they are re-directed to a 404 page because I have it set up to make the page private. What I want to do is if the user ...
1
vote
1answer
57 views

301 Redirect Code

I am currently trying to redirect a subdomain.blogger.com blog to a domain located on my hosted WordPress install. The code below is supposed to send a 301 redirect and then make that specific post ...
0
votes
2answers
516 views

How to redirect to cart page using wp_redirect [closed]

I am trying to the redirect on a cart page using a bellow code but,I am not able to redirect on cart page . wp_redirect("'.home_url('cart').'");
0
votes
2answers
529 views

wp_redirect not working from shortcode function

Whenever I use wp_redirect(plugins_url('account/login')); in a shortcode function I get the following error: Warning: Cannot modify header information - headers already sent by ... Is there any ...
0
votes
1answer
697 views

wp_redirect not working on admin menu page

Im trying to create a admin menu link on the backend dashboard, that will take users to the front end of their site. Im trying to use this code, but for some reason the redirect is not working. // ...
0
votes
0answers
39 views

Redirect outside wordpress

I have a folder called "stats" on my server that I cannot access anymore because wordpress redirects it to the "Page not found". This folder has nothing to do with wordpress. I have searched for a ...
1
vote
1answer
433 views

Problem with is_page & wp_redirect

I use cookies to determine which menu I should use on my website. This is working fine, but I want to force the correct one if someone views the URL directly instead of via the URL with a query string ...
1
vote
1answer
83 views

blog url redirecting

I used to host a word press blog and a forum on a server (srv71) with a domain name. And a few days ago I transferred my whole site to a new server (srv14) but I havn't updated my dns and I've ...
0
votes
1answer
133 views

wp_redirect only works for external pages

I want non logged in users to be redirected to the homepage which has a login/register form. After logging in all pages will be accessable. I've added the following code to my header.php <?php ...
-1
votes
1answer
191 views

Admin Menu new tab external link

In a clients site i needed to add a menu item under the dashboard, this link is to go to a external url. i managed this with the following code: add_dashboard_page( 'redirecting', 'Docs', 'read', ...
0
votes
3answers
218 views

pre_get_posts redirecting

Is there any possibility to redirect visitors to home page, for example, if they aren't allowed to view page's/post's content, using pre_get_posts action? I'm trying to develop a simplified ...
0
votes
0answers
256 views

How do I combine wp_redirect and add_filter?

I have a multisite, where I would like any subsites to share the same login, register and lost password page. Those pages are custom pages and located on the main site. So far so good. The problem I ...
1
vote
1answer
97 views

Redirect outside WP after login

I have http://example.com/admin.php There I check whether the user is admin or not. If not, I send the user to the wp-login page like this: ...
0
votes
1answer
207 views

do more action after wordprss login successfully

I have a simple requirement, after user login set the login user session and then redirect to another page. Yes, I found some similar page from here is-there-a-hook-that-runs-after-a-user-logs-in As ...
-1
votes
2answers
41 views

Homepage redirects to other site of mine? [closed]

I have a website in which the home page redirects to a different site, which is also from me. I tried getting on it yesterday and then, it was fine. But now, this evening, when I never touched a ...