Questions tagged [redirect]

"HTTP Redirection" – the process by which a request for one URL is automatically replaced by a request for a different, usually related, URL.

Filter by
Sorted by
Tagged with
1
vote
1answer
134 views

Set front page as static page [closed]

I am new to WP. I have installed WP in my local system with WAMP and trying to create my own theme. I have created pages and trying to set my "Home" page as front page and "Blogs" page as my posts ...
1
vote
1answer
4k views

Wordpress redirect loop on nginx + apache reverse proxy

I am trying to setup a fresh Wordpress installation on an nginx + apache reverse proxy configuration. My installation process was as follows: Installed nginx and apache servers Configured nginx (conf ...
1
vote
0answers
155 views

Wordpress within a subdirectory of another Wordpress environment doesn't work

Here's a summary of my scenario: I'm running Wordpress on a linux environment The root directory contains and index.php file that references the subdirectory where my main site's files are (codex ...
1
vote
2answers
30 views

How do I properly redirect outbound links with special characters

The search form on my website has a couple radio inputs for the user to select which source (all but one are external to the website) the search query should use. I retrieve those inputs (search ...
1
vote
1answer
45 views

Redirect to “All Posts” after post update or publish in Block Editor

When anyone presses Publish or Update from the Block Editor in a CPT, I would like them to be redirected to the CPT listing page. (Users are typically editing many of the CPT at once, so this will ...
1
vote
1answer
118 views

Custom url structure for custom template

I have a custom taxonomy called activities and a custom role called operator. So, if example.com/operators/bird-watching is visited then I want to list all the operators that offers bird-watching. ...
1
vote
1answer
3k views

Stop unwanted WP redirection to new url

I had a custom type post, for which I changed the url. I have refreshed permalinks and cleared site and browser cache. The old url now redirects to the new url automatically. Possibly because the post ...
1
vote
2answers
698 views

Redirecting category link to first child post

I am trying to redirect the category link to the first child post. I am using following code in category.php. This redirects, but link doesn't go to first child post. How can I redirect to the first ...
1
vote
3answers
433 views

How to create a php url redirection for nicer links

I'm looking for a way to make a URL redirection for affiliate links on my website. Something like : site.com/go/keyword I know there is many plugins for doiing this, but i don't like plugin, and i ...
1
vote
1answer
1k 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 ...
1
vote
2answers
2k views

Display most recent post in category instead of archive?

I've successfully redirected my blog page to my most recent post - i.e. so when you click the 'blog' link in the nav it goes to the most recent post page and you can click next/prev buttons to ...
1
vote
4answers
13k views

Redirect user after login/registration globally

How it possible to redirect all users, even administrators after login to specific page? And also redirect users after successful registration? Any simplest way? For example I want to redirect users ...
1
vote
1answer
515 views

Custom Post Types Not acknowledged for date.php template

So my issue is this. I'm building a news site that needs to display several lists of links on the homepage for the current date. I've separated the different sections into custom post types for ease ...
1
vote
1answer
256 views

Links to an exisiting Page are now redirecting to a draft page?

I have a page that has been working fine for a while now. However I'm looking to replace it in the not to distant future. (testing conversions) I though the correct process for this would be to ...
1
vote
4answers
1k views

Where does the 404 redirection happen?

Can someone please tell me where the 404 redirection occurs? I am wanting to redirect to a custom template.php instead of the 404 page. Is this possible to do? If it is can some one provide me with ...
0
votes
1answer
353 views

Redirect Old domain & posts to new domain homepage

I am closing my previous site so i want to redirect old domain's homepage & all posts to new domain's homepage. I tried using Cpanel redirect but it only redirects homepage not posts. I want to ...
0
votes
1answer
708 views

Template redirect is_tax() not working

I'm trying to do a template redirect in my wordpress but with partial success function ahaali_qa_theme_redirect(){ global $wp; $plugindir = dirname(__FILE__); if(is_archive()){ ...
0
votes
1answer
2k views

Redirect to requested page after (custom) login

I am developing a WP site locally and I want the content to be viewable only to users that have logged in, except for the front page that's visible to everyone. When a non-logged in user clicks on a ...
0
votes
1answer
629 views

Wordpress Customizer: custom redirection after closing

Someone knows if is there a way to customize the redirection after a user click "close" in the Wordpress Customizer" live editor? It would be very useful. Thank you very much.
0
votes
1answer
3k views

How to send “Location” header on plugin form submit event?

How to redirect to specified page after form was submitted? Warning: Cannot modify header information - headers already sent by (output started at wordpress\wp-admin\menu-header.php:94) in ...
0
votes
1answer
61 views

Redirection errors

I was trying to change how my website is routed by changing the URL from somebody's old host to mine. From bjj.iamrobbiegreen.com to gladiatorbjj.net under settings and site URL. I now cannot get ...
0
votes
1answer
92 views

How to make a redirection that fired a script before redirecting?

I have a software that I must host in an external server in a niche market (kind of extensions for browsers). I want to know how many people click on the link when I share it on social media. My idea ...
0
votes
2answers
1k views

Plugin Redirect After Activation

I have create a plugin that I want to redirect to the options page of that plugin after the user activates it. This works fine when I test it locally. However, on a live installation of wordpress, it ...
0
votes
4answers
5k views

WP redirects all pages from new domain to old domain

I've moved my Wordpress installation from my development domain to the live domain, but it keeps redirecting every page back to the old (dev) domain. So far I've: Added define('WP_HOME', 'http://...
0
votes
1answer
1k views

Landing Page - Redirect Loop?

Recently this solution was given (Thanks Mr.D), for this Wordpress redirect to landing page if not logged in thread <?php if($_SERVER['REQUEST_URI'] != '.../' || $_SERVER['REQUEST_URI'] != '.../'){...
0
votes
1answer
457 views

Prevent redirect to page/page when reserved term 'name' in $_POST when value is a page/post title

I'm using a particular payment gateway which includes in their payment response the parameter 'name'. I'm aware this is a reserved term which shouldn't be used. Unfortunately, I have no control over ...
0
votes
1answer
428 views

Temporary redirect prevents getting $_POST array

I'm sending a form from a woocommerce plugin. I've tweaked the thankyou.php page and added email sending functionality. However the $_POST array is empty. Inspecting with Chrome Dev Tools I found ...
0
votes
1answer
716 views

Redirecting all old links from previous EE site to new WP site in one go?

I'm about to migrate from an old Expression Engine website to a new WordPress site on the same domain. Is there anything I should be aware of with respects to redirecting old links? The old site is ...
0
votes
1answer
607 views

wp-login.php — redirect logged in users to custom URL

When the user visits /wp-login.php and is already logged in, how can I redirect them to a custom URL? I found the same question asked and answered, only relating on who to redirect to the admin panel ...
0
votes
1answer
382 views

Redirecting old site links to new site

I'm hoping one of you WP gurus can help me out here... I have a website. Let's call it Jack.com I'm re-branding Jack as a girl, so I've made another website website - Jill.com I want all existing ...
0
votes
1answer
1k views

How to pre-fill Google Forms URLs with logged-in WordPress user's data

We need to have our logged-in users' data (username , Email , First Name , Last Name) pre-fill the links to Google Forms existing on our site. Why? We have Google Forms spread out on our site that ...
0
votes
1answer
3k views

Search results URL without query string variables

Have a search page /search/ where we currently use URLs formatted like /search/?q=query for showing search results. Now we would like to show the search results with a URL like this /search/query/ ...
0
votes
3answers
530 views

Random and Erroneous Wordpress Redirect

Would somebody mind postulating and possible reasons why their is an automated redirect on my homepage that adds /admin to the URL. Please visit www.divethegap.com/update. You will see that it ...
0
votes
2answers
184 views

I want to redirect the url to the previous page

I have created a table in which i have delete link something like http://localhost/wptheme/wp-admin/admin.php?page=batch-op-settings&action=batch-delete&post_id=5 and i have added a code to ...
0
votes
1answer
894 views

Load template inside a parent template

Inside of my current theme directory, I created a folder called "mobile" which contains a separate set of template files, all optimized for mobile. Now, say I setup a function that detects a mobile ...
0
votes
1answer
3k views

Redirecting users to referrer page after logging in using custom login form

I am using a custom wordpress login form using the following code. I have this form in the sidebar of my site: <?php if ( ! is_user_logged_in() ) { // Display WordPress login form: $args = ...
0
votes
1answer
627 views

How can I fix a slow redirect after form submit from frontend (no plugin)?

Below is the code I'm using for my short-coded form and to add the post. Here's a basic overview of the problem I'm trying to remedy: -This form is displayed on the page at /addmember/ -On this ...
0
votes
2answers
304 views

Redirect from https to http or from http to https? [closed]

We have a WordPress blog, google is indexing http as well as https urls. Now we are considering to either redirect https to http, or to use https and redirect all http traffic there. And how can we ...
0
votes
1answer
198 views

Redirect after closing Theme Customizer when user does not have permission for theme page

I'm looking for a way to alter the href target for the "close" button from the theme customizer. Another question/answer came very close, but in my case the solution used which involved "load-themes....

1 2
3