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
1answer
18 views

Making an under maintenance page (without using plugins)

There are a bazillion plugins that does this. And every time I use one, I end up spending hours trying to style the message (and logo and background) to fit the styling of the page. So I was ...
0
votes
0answers
31 views

Redirect Image URL to it's parent post

I am trying to redirect my image URL to its parent post (where an image has been used). For example: Image URL is example.com/04/2020/image.jpg and it was used on example.com/post/my-post I had ...
0
votes
0answers
19 views

Redirect from wp-admin back to page

I want when i click on menu button Return to Home i made on wp-admin menu to redirect back to page: My Extra Code: [ 'parentSlug' => 'doesnt-matter', '...
1
vote
0answers
14 views

redirect Login problems

I use this code in my funtions to redirect all the people without login to my login page, but the link "lost my password" don´t work and continue redirect to login page. Can anyone help me? Thanks ...
0
votes
1answer
14 views

301 Redirects from old Wordpress domain

I have an old site www.exemple.com and I made a new one name www.example.ro The thing is, the old site (and the new one) are Woocommerce shops and have a lot of products. Is there any method to ...
0
votes
2answers
39 views

Redirect user if they are logged in

This below script works great and redirects logged-out users to login page if they try to access the my-account page /**************************************START***************************************...
0
votes
0answers
17 views

Help solve the problem! When moving to https, one photo does not want to change the address to https!

I installed SSL on my website. Then, after moving the entire site to https, one photo does not want to change the address to https! I tried in various ways to fix the error, but nothing has worked for ...
0
votes
1answer
21 views

Redirect user after login to prior page through a wp_login hook

We store user meta data on our website. I have a function hooked into the wp_login action to redirect the user to a form to update their meta if it's older than 1 year. If the user's information is up ...
1
vote
2answers
14 views

Redirect HTTP to HTTPS for all sub domains (blog posts)

I have a Wordpress site functioning as a blog site on a website. The main website is just basic HTML it is only www.example.com/blog which has the WordPress site. I have installed an SSL certificate ...
1
vote
1answer
23 views

htaccess wildcard redirect misses some URLs

I am using a wildcard redirect to redirect my old domain to a new domain. It works great but misses a few URLs (they don't get redirected to the destination and return status 200) Can you please help ...
0
votes
1answer
16 views

SEO friendly query vars

I have an issue with a PHP form and the query vars it generates to fetch certain posts. An example of a generated URL could look like this: siteurl/properties/?state=georgia&type=industrial The ...
1
vote
0answers
27 views

wp-admin - 404 after custom login form

I create custom login form in my page with this code: add_filter('login_redirect', 'my_login_redirect', 10, 3); function my_login_redirect($redirect_to, $requested_redirect_to, $user) { if (...
0
votes
0answers
10 views

Wordpress redirection after submitting duplicate comments

in my testing env, whene i post duplicate comment, wordpress redirect to wp-comments-post.php, How can i stop the redirection and make it to custom errors page, ??
0
votes
0answers
26 views

Unexpected: Wordpress redirects to the WP_HOME/WP_SITEURL value

Hello Wordpress colleagues, I'm working on existing WP instance (5.2.5) having an issue with WP_SITEURL and WP_HOME defined in wp-config.php. Expected Result: I expect WP_SITEURL and WP_HOME to ...
0
votes
0answers
15 views

When I go to a child category of the second level, I receive singe post page

At the website I'm working on I use multilevel categories so the links to posts are like category-level-1/category-level-2/category-level-3/post-name. At the Permalink settings I set the following ...
0
votes
0answers
31 views

Redirect users to their subfoldersite in mutisite network & hide wp-admin and admin bar

Can someone help and suggest a snippet for subsite users, when they register using mainsite.com/login, to redirect them to mainsite.com/subsite ? I read that it is a default for WordPress multisite ...
0
votes
2answers
12 views

Make a treatment before the action of the form

I have a form that redirects to a payment platform and sends data in $_POST. <form method="POST" action="https://www.paiementgateway.com/paiement/order1.pl" accept-charset="UTF8" id="knp-form" ...
0
votes
0answers
29 views

Wierd 301 redirect from the homepage to the author url

There are countless of cases on the net where author pages redirect to the homepage (due to plugins and whatnot), but I couldn't find a one where the opposite is the case. Namely, there's this weird, ...
0
votes
0answers
109 views

Can't add new plugin or themes on a wordpress multisite network from the primary site as administrator. Error: ERR_TOO_MANY_REDIRECTS

I can't add new plugins or themes on a wordpress multisite network from the primary site as super administrator. It shows this error: ERR_TOO_MANY_REDIRECTS. However, I am able to access all pages, ...
0
votes
0answers
6 views

How to access website after migrating domain to production?

I set up a virtual machine, say machine A, running bitnami and wordpress and configured the SSL certificates for a domain. I then upgraded my code to NodeJS and got a new virtual machine, say machine ...
0
votes
0answers
25 views

How to ensure custom post type category URL matches permalink

I have a custom post type with a rewrite rule containing a variable, which is later replaced by the a category term 'smoothie_category'. The argument line passed to register_post_type is: 'rewrite' =&...
0
votes
1answer
34 views

Redirect old URL (with different post ID) to new URL

I recently merged two websites. So all the posts of 'old website' were migrated to 'new website'. Now I want the old URL's to redirect to the new URL's. My first choice was a .htaccess rewrite, but ...
0
votes
0answers
26 views

Random redirect to wp-admin/install.php

My website redirects to wp-admin/install.php sometimes. This came on all of a sudden. And sometime website is working fine. Any ideas on why it could be redirecting to that? How to resolve it?
0
votes
1answer
19 views

Login redirect. Check user meta and redirect accordingly

I have a function that checks some user meta and then redirects based off that. I'm pretty sure this was working before I updated everything on my site. For some reason, now when someone logs in it ...
0
votes
0answers
10 views

How the best way to get and publish single post from network in Wordpress Multisite and create permalink for it like “blog/%site_id%/%postname%”

My idea is collect post from subsites to main site in Network WP MS and open it there. I have found nice class https://github.com/miguelpeixe/WP_Query_Multisite for Multisite Querying. Now i want to ...
1
vote
1answer
346 views

Password Protected Page Not Displaying Content After Entering Password

For reason unbeknownst to me (I'm not the original developer). This custom WordPress site doesn't show the password protected login form..."This content is password protected! To view it please enter ...
0
votes
0answers
62 views

Mailjet Email Subscription + Redirect w/ Custom Template Fails

We are using Mailjet for email subscriptions on our website. We use a widget in the header, footer and on a subscriptions page. These had been working quite well for the last year, but something must ...
1
vote
1answer
95 views

wp_logout_url() redirects to confirmation page even with nonce?

I use wp_logout_url() to output a logout link. How can I avoid displaying the confirmation page that appears after clicking the link? <a href="<?= wp_logout_url(get_permalink()); ?>">Log ...
1
vote
0answers
62 views

Regex expression for redirecting image URLs to another folder

I have changed the upload folder to a folder called "images" in the root folder by entering define('UPLOADS', 'images'); inside wp-config.php file. My Media settings had the images organized into ...
1
vote
0answers
15 views

Redirect some of the languages on a multi-language site

I have a site that uses WPML to display three languages. EN - www.domain.com FR - www.domain.com/fr/ ES - www.domain.com/es/ I want to set up redirects so that all of the EN and FR pages (home and ...
1
vote
2answers
21 views

Redirect already logged in users away from a page to a specific page base on user role

I'm trying to accomplish this simple task through different plugins, but I can't find the right one for different reasons. I have a Login Page with a login form. When user logs in, he's redirected to ...
0
votes
0answers
14 views

WordPress Redirect Issue

I installed WordPress in localhost. But when I click on link I am getting Not Found error. My Permalink Settings is like below I installed mod_rewrite module in Apache 2. I checked debug.log file ...
1
vote
0answers
27 views

Hide Login information in Account settings in Buddy Boss

First time working with Buddy Boss. I managed to customize the navigation items on the profile page, but I can't find a solution for the Account settings page. What I'm trying to achieve is to hide/...
1
vote
0answers
14 views

Always redirect current user to certain page

What code do i have to use to always redirect a certain user (or role) to a certain page? *Example: IF Logged in & current user = Harry Then Redirect to domain.com/harryspage IF Logged in & ...
1
vote
1answer
28 views

Redirect subscribers to last viewed page after log-in

I want users "subscribers" to be redirected to the page they last viewed. At the moment, users are redirected to their "myaccount" profile page (my-account.php). I am trying to figure out how to ...
0
votes
0answers
36 views

Redirect learnpress course page to another page

I'm using learnpress plugin. How do redirect a single course to another page? The permalink of individuals is www.example.com/course/course-name.
1
vote
0answers
7 views

Redirect all requested url to new url

i want to redirect all requested url in wordpress to new url, for example : domain.com/c/camera to domain.com/product-category/camera How can I do this in htaccess?
1
vote
0answers
9 views

301 redirection editing .htaccess doesn't work

I set up SSL certificate and submitted to the hosting service. It says it is connected to Port. I wanted to redirect http url to https, so I edited .htaccess file with a code as below in the root ...
0
votes
1answer
38 views

wordpress automatic URL 'page' parameter rewrite

I have noticed that on my wordpress installation the page domain.com/test?page=2 is redirecting to domain.com/test/2 I tried disabling all plugins and also used the default/different themes and ...
0
votes
0answers
21 views

Redirect *.php to path using web.config file

I want to redirect blog/customfilename.php to blog/customfilename using web.configfile. I applied this rule: <rule name="hide .php extension" stopProcessing="true"> <match url="(.*)....
1
vote
1answer
30 views

WP site in infinite redirect loop

UPDATE: In Cloudflare - Despite being in DEV mode, I turned OFF redirect to HTTPS: and this got past the infinite loop. However, if you use the 301 Redirect checker, you can see it is going from https:...
0
votes
0answers
14 views

URL redirect to home page issue in word press site

If i open URL for first time in any browser it is redirecting to home page. Then i open again it is going on actual URL. Here is the URL https://dropshipping.vidaxl.com/help-center/ Can any one ...
0
votes
0answers
13 views

How to update all in-site redirect URLs to destination URLs at once

I have transferred my Blogger-run website to Wordpress. As you know, Blogger's default permalink format includes date before slug and .html at the end, which in my understanding adversely affects ...
0
votes
1answer
24 views

Where to insert redirect code based on http_referer?

If the client arrives at my WordPress site from a specific other domain, I want to direct the client to a specific page on my site. Preferably, I would like to use the PHP header function to perform ...
0
votes
0answers
8 views

Shop page link duplicated when homepage is shop

I’ve noticed that when we assign a shop page as homepage in READING, we get two links. 1. http://www.domain.com/ 2. http://www.domain.com/shop Those two link will have the same content, so they will ...
0
votes
0answers
24 views

redirect after logout woocommerce

add_action('wp_logout','my_logout_redirect'); function my_logout_redirect() { wp_redirect( 'https://www.myweb.se/bye/' ); exit; } THIS IS WORKING but i want it to work on all languages so for ...
0
votes
1answer
41 views

How can force redirected to login for two or more pages to view or access

I have a multiple author wordpress blog. I want to force redirected to login page, if any visitor view or access to specific pages. example : If user visit to specific page like, www.mysite.com/author-...
0
votes
0answers
12 views

Redirecting old domain to new

I have a new Wordpress site e.g newsite.co.uk. I dont have access to the old domain, but the old developer has said he did a 301 redirect on oldsite.co.uk. This works fine when going from base to base ...
0
votes
2answers
146 views

Changing auth_redirect() page

I understand that the auth_redirect() checks if a user is logged in, if not it redirects them to the login page then come back to the previous page on success. I need that functionality on my website ...
0
votes
0answers
13 views

URL encoded characters issue

My issue is: Google gives me a series of 404 url's some contain encoded characters which won't work once added to the redirects for example: "Canopy-UPF50%252B-Buggy.html" where according to the list ...

1
2
3 4 5
34