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
0 votes
0 answers
9 views

Site1 wordpress website redirect to other site2 in my same server

I am using Alibaba Cloud Server Ubuntu 18.04 and control panel is VestaCP. I have got a WordPress website www.site1.com . However, after I install SSL via really simple ssl plugin. Now, I cannot ...
John Lee's user avatar
0 votes
0 answers
9 views

Redirecting to Specific Page after Language Selection with GTranslate Plugin

Dear WordPress StackExchange Community, I have been using the GTranslate plugin, and I'm thrilled with its functionality. However, I am facing a challenge and would appreciate your insights. Here's ...
Mahmudur Rahman's user avatar
0 votes
0 answers
9 views

Unwanted redirection to homepage after turning taxonomy to 'public'=>false

I have in my site (a site with Elementor, if it's matters) taxonomy 'aaa' with taxonomy term 'bbb'. When I registered this taxonomy, it was set to 'public' => true. Now I changed this setting, so ...
Avi Rec's user avatar
1 vote
1 answer
22 views

Wildcard multisite wp-admin url wrongfully redirected

So, this is the situation. I have a working top level domain site (https://example.com) and I set up a wild card subdomain (*.example.com) and multisite settings in WordPress. It works as expected, as ...
Sven V's user avatar
  • 11
0 votes
1 answer
44 views

redirect wp-admin/profile.php to members/your-profile

Is there any way to redirect /wp-admin/profile.php to /members/your-profile I do not want members to go to the default wp-admin page but instead go to the custom members page. I tried a redirect via a ...
Ian's user avatar
  • 1
0 votes
0 answers
13 views

Change WordPress Multisite Domain to subfolder

I want to change my existing WordPress Multisite main site to be in a folder. For example, this is my current main site of the network: example.com. Other domains in the network have folders like ...
Cray's user avatar
  • 145
0 votes
1 answer
29 views

Redirect WordPress page to the latest created post by the logged in author/user

I have a basic WordPress code that redirects someone to the last post type created on the site, in this case is the "case" post type: <?php /* Template Name: Redirect */ $args = ...
Sean Bagheri's user avatar
0 votes
0 answers
7 views

Cloned site in subdirectory keeps redirecting to root

I used the Duplicator plugin to make a copy of my main https://l4jp.com site in a subdirectory "old" so I could do comparisons between versions of a theme and fix CSS problems. I can access ...
OsakaWebbie's user avatar
1 vote
0 answers
11 views

Wordpress Redirects Old Post Url to New Related Post

I have a post with a URL of example.com/x-y-z/ and when I added a completely new post with a new URL of example.com/x-y-a/, WordPress redirects the old URL to the new post's URL. (I don't want any ...
doraemon's user avatar
  • 213
0 votes
0 answers
14 views

Change Website Homepage from WordPress to Xenforo

I have a website which has both WordPress and Xenforo forum and both has individual home pages. The Xenforo is installed inside /community directory and WordPress in default directory. Now the website'...
Karthick Sriram's user avatar
0 votes
1 answer
24 views

Redirect all pages to a specific page of a new domain but exclude specific pages

I'm trying to redirect all pages of example.com to a specific page domain.com/rebrand-explained except for the following pages, they need to be going to the same slug on the new domain for example: ...
Johan Barnard's user avatar
0 votes
0 answers
29 views

How to create Wordpress login for different users, with different roles?

I need to create a web page. where the user / group of users, after logging in through the portal (using the provided login credentials), will be redirected to the relevant page with their own ...
Irina Niko's user avatar
0 votes
0 answers
25 views

Intercept numerical subdomain requests

Is it possible, via .htaccess to intercept all numerical subdomains ex. (02321.example.com), and forward them to example.com/02321 ..and HOW do i write it (i'm not god at regex) and how to get NOT ...
Adam Larsson's user avatar
0 votes
0 answers
18 views

Bulk 301 redirect for Taxonomies with pagination

I'm looking for the best way to bulk redirect for modified taxonomy URLs. After category slug has been changed, I need to perform a redirect for all paginated pages: /category-old/ redirects to /...
Alexius The Coder's user avatar
0 votes
0 answers
15 views

alias domain in htaccess and wp-config.php

i have did domain alias in htaccess and wp-config.php. my question is: Can Google penalize my domains because of duplicate content? and may that affect seo and website rank? or is this ok to have two ...
sajad's user avatar
  • 101
1 vote
2 answers
39 views

Redirect of specific words in URL ahead of website migration

I'm migrating my website from Squarespace to WordPress and wondering if I can get ahead of the one thousand+ 404s I'll hit by setting up something to redirect specific keywords to remove them. The old ...
Dylan's user avatar
  • 11
2 votes
2 answers
31 views

Does WordPress automatically redirect to the URL specified in settings?

My WordPress site used to require htaccess rewrite rules to redirect non-www to www (or vice versa) and http to https. Without those rules, the site would be accessible at whatever URL the user ...
Dave's user avatar
  • 119
1 vote
2 answers
135 views

Want to be able to redirect readers to another wordpress site but still be able to access the back end of current site

I had done this once before but cannot find my notes for it. I want to be able to redirect readers to another WordPress site, but still be able to access the back end of the current site. Basically it'...
David Borrink's user avatar
0 votes
0 answers
17 views

Disable Category Link

I need some help to disable my category pages and make them not clicable. I need to disable those 2nd level slugs from going to another page.I just want them there for structure reasons, no need to ...
user22446164's user avatar
0 votes
0 answers
22 views

Redirect domain and subdomain to rewrited rule depending on $_SERVER['REMOTE_ADDR']

In first question : Must or do I have to use .htaccess rather than wp redirect ? I’m loolink for to use wp_redirect() to redirect website to new permalink structure for language. Is it the good ...
imagIne's user avatar
  • 41
0 votes
1 answer
22 views

Can I redirect media urls (not attachment pages) to the post parent?

I have a really unorthodox use case, perhaps. We have a set of pdf files which our colleagues would like to track downloads for. We have been using our web server logs to get code 200 requests for ...
ImADummy's user avatar
0 votes
0 answers
42 views

Bulk Redirect WordPress Posts to Category based URL after Permalink Structure is Changed

function custom_category_redirect() { // Get the requested URL $requested_url = esc_url_raw(add_query_arg(array())); // Get the permalink structure $permalink_structure = ...
WordCent's user avatar
  • 1,827
0 votes
1 answer
71 views

wp-login - unable to redirect user to a custom login url

I have this code in a template file that will contain my vue app that I want to load in WordPress. <?php /* * Template name: App */ ob_start(); get_header(); if( is_user_logged_in() ) { ?> ...
ICTDEV's user avatar
  • 113
0 votes
0 answers
28 views

Restricting access to non logged in users

im trying to create a user flow where, when a non-logged-in user tries to access my website, I want them to see an entry page with links to the login and registration pages, but I don't want them to ...
onlyoreoo's user avatar
0 votes
1 answer
20 views

Redirect after registration and auto login is not working

the user can register on the frontend form, and will be auto logged in after submission. Then he should be redirected to a custom URL, but the redirect is not working. // Shortcode für das ...
LovinQuaQua's user avatar
0 votes
1 answer
24 views

openlitespeed rewrite rules conversion from apache

# BEGIN Wordpress <IfModule mod_rewrite.c> RewriteEngine on # behind proxy RewriteCond %{HTTP:X-FORWARDED-PROTO} ^http$ RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L] # plain RewriteCond %{...
WsArea's user avatar
  • 1
0 votes
1 answer
61 views

Why is redirect_to parameter not passed to login form in wp-login.php?

I'm trying to build a simple link to include in an email that would take the user to the WP login form, and from there to the destination post. This should be as simple as making the link href be ...
eljefejb's user avatar
  • 621
0 votes
0 answers
103 views

How can I point headless wordpress admin panel links to proper urls without using frameworks?

I have a headless wordpress website. The frontend, built using React, without headless WP frameworks, is in the public_html directory. The wordpress backend is in the public_html/back directory. ...
budgiebeaks's user avatar
0 votes
1 answer
20 views

whole website redirected to another page

whole my website is redirected to another url and also i lost my rank in google search. after installing a plugin i think this problem is happened and after that i see unrelated result in google ...
sajad's user avatar
  • 101
1 vote
0 answers
27 views

One page is redirected to home and I don't understand why

This URL https://www.royaumont.com/les-residences-de-creation-choregraphique/alice-lambert-lucie-palazot/ is the permalink of a page in my Wordpress. But it is redirected to the homepage https://www....
superfive33's user avatar
0 votes
1 answer
226 views

How to stop wordpress from redirecting from the post's old slug after changing title and slug?

After changing a post's title/slug from mysite.com/name to mysite.com/new-name, the old slug mysite.com/name is now redirecting to the new one mysite.com/new-name, and I don't want that to happen. I ...
cashrunner's user avatar
0 votes
0 answers
32 views

Wordpress 301 Redirect not working

Problem: There is a dulicate site that is still referenced in some sites maybe, is there way to check the ingoing links to that site? I have a new site, that shall be online, and it is in some places, ...
deified's user avatar
0 votes
1 answer
30 views

Make category page the wordpress homepage (not blog)

My question is very similar to this one. However, I can't add comments to get more explanation so I open a new question. My website has no blog. The home page is a static page. But I want my category ...
J.K.'s user avatar
  • 3
0 votes
0 answers
13 views

My webiste has million of pages with /?=v"ex".html

I checked Google Search console and i found 1.3M pages with URLS/v?="dhshd1".html all the pages are indexed in google and not appearing in dashboard and redircts to a page like my home page. ...
AhmedSobhy's user avatar
0 votes
0 answers
25 views

Changing the redirection of a restricted url

I've almost finished setting up a website as a complete laymen and i used a function posted on here that allows hyperlinks to be only visible to logged in users. The function works completly fine, all ...
Benjamin's user avatar
0 votes
1 answer
115 views

My pagination creates a redirect

Can you help me this time to fix this problem my code is: public function numeric_pagination() { global $wp_query , $wp_rewrite;; if ( $wp_query->max_num_pages < 2 ) { ...
Ali Kiani's user avatar
0 votes
1 answer
22 views

Redirecting logged in users to custom URL

If I'm going to use this code in my website function redirect_logged_in_user() { if( is_user_logged_in () { wp_redirect('http://customurl'); } } global $pagenow; if( $pagenow == 'wp-...
Maria's user avatar
  • 3
0 votes
0 answers
32 views

Redirect add to cart url if user tries to add to cart a WooCommerce Subscription (all variations) that they already have?

I have a link like: https://example.com/checkout/?add_to_cart=1&variation_id=2 The option to Limit Subscriptions to just one active subscription is on (https://docs.woocommerce.com/document/...
Johnny Walker's user avatar
0 votes
1 answer
63 views

Allow requests to resources outside the wordpress folder

I have wordpress website https://example.com. /wordpress is never part of the url. It runs on a dedicated server that runs Plesk Onyx. The file structure is | - httpdocs | - wordpress | - ....
Sam Dean's user avatar
  • 101
0 votes
1 answer
13 views

How can I redirect the user to the page they were on when they clicked "Lost Password" using "retrieve_password_message" filter

I am working on a site where one specific post type is hidden behind a login. For this I used wp_login_form to replace the_content. This is working fine, but I also want to add a Lost Password link ...
Ben Aldrich's user avatar
0 votes
1 answer
24 views

Custom Post Type slug has the same Redirection entry

So this is my case.. I have a Custom Post Type with slug /event I have this plugin installed - Redirection On the said plugin, I have a Redirection entry ^/event/(.*)/?$ which would redirect to /...
ensaymada's user avatar
0 votes
0 answers
52 views

How to redirect non admin user after login

I have a custom user role on the site. I also have a login hook to redirect users to the home page. When an admin/editor logs in this works fine (although ultimately I would like them to redirect to ...
Michael's user avatar
0 votes
0 answers
36 views

Display custom messages based on user role while logging in

I have a site with two user roles Agent and Agency. When a non-logged in user clicks on a page link they will be redirected to login page. When they try to login, Agency users should be redirected to ...
Lin's user avatar
  • 1
0 votes
1 answer
37 views

Disable Attachment Page Except for Category

I'm looking for a solution similar to here, except I want to keep attachment pages for attachments in a specific category. I tried adding the below function, but it's still redirecting all of them: ...
BlueHelmet's user avatar
-1 votes
2 answers
62 views

Redirecting by role from a button

We have a button at the top of our site where users can quickly get their account information, but we need to redirect them to different pages based on their role. Is there code I can add to this ...
Julie George's user avatar
0 votes
0 answers
19 views

When invalid child page entered, WP redirects to next available page instead of giving Page Not Found

I have a number of customer pages set as parent pages, and then for each parent page I make two child pages. One child page is called client-page, and so to get to it you would enter a url like so: ...
Galloway Grumblefield's user avatar
0 votes
1 answer
75 views

wp_login_url always redirects me to wp-admin

I have a specific site on my website which needs to be logged in. So if I visit the page and I am not logged in, I want to redirected to wp-loginand back to the page. But everything I am trying, I ...
Ted Logan's user avatar
  • 101
1 vote
1 answer
91 views

How to setup an automatic redirect for when there has been a critical error on the site?

Is it possible to automatically redirect to an external URL when the WordPress site has a critical error? Specifically when the site throws the "There has been a critical error on this website.&...
blakeow14's user avatar
0 votes
1 answer
147 views

How to force HTTP and stop SSL completey on Wordpress website

We have a Wordpress website wich uses Video files from a local sever without SSL. If we use SSL on the main website url, it can't play Videos because of CORS policies so we need to completely disable ...
Taqi Vaheed's user avatar
0 votes
0 answers
7 views

Redirection after Category Change for Custom Structure

My website's current permalink structure is: /%category%/%postname%/ I moved an article recently from Primary_Category_A to Primary_Cateogry_B. However, Wordpress isn't redirecting the old slug with ...
Vidyut Patra's user avatar

1
2 3 4 5
39