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

redirected to posts tab when I try to update page

Please help. I am a beginner WordPress user with very little experience and no coding knowledge. I accidentally restored a revision of the homepage and tried to edit the page back to its previous ...
0
votes
0answers
8 views

simple add_rewrite_rule not working

I'm trying to redirect https://example.com/register to https://example.com?mode=register I have tried the following code add_action( 'init', 'redirect_urls' ); function redirect_urls(){ ...
0
votes
0answers
6 views

How To Fix Auto 301 Redirects From Wordpress (when choosing custom permalink)?

I had a question about how to fix the auto 301 redirects that Wordpress sets up when you do a custom permalink structure. In the setting>Permalinks, I created a custom structure (website.com/category/...
1
vote
1answer
15 views

Redirect subdomain homepage to domain specific page in wordpress multisite

I have a wordpress multisite with one site to domain.com and another to materials.domain.com At the domain site I have a page domain.com/materials I'd like to redirect the materials.domain.com ...
-2
votes
0answers
13 views

a href, please fast help [closed]

I make a site and use the portfolio plugin everything works well only when I click on the portfolio item it creates a new page that is empty and I can't edit it with elementor. What should I do? I ...
0
votes
0answers
34 views

URL re-direct (without changing the structure)

I need to somehow set a redirect on my site. Let me explain: when I go to www.example.com/aaa/bbbbbb/ and click on "ccccccccc", I get: www.example.com/aaa/bbbbbb/ccccccccc Instead, I need the URL to ...
0
votes
1answer
20 views

Determine user destination on wp-login.php

I am adding functionality to require users to login to view a website by hooking into the template_redirect action and sending non-authenticated users to wp-login. This is all working fine. I would ...
1
vote
1answer
18 views

Redirect user to login before viewing custom post

I have a site with a listings page (https://gymkoi.com/class-listings/) and all I'm trying to do is redirect a user who is not logged in to my login page (https://gymkoi.com/login/) before they can ...
1
vote
0answers
17 views

How to redirect user to specific page based on the input password

I would like to ask if anyone has a ready solution for WP or recommend a plugin for password-based pages, namely: I create: a) subpage 1 and a password for it, e.g. 1234 b) subpage 2 and a password ...
0
votes
1answer
8 views

Redirect Logged In User if page is wp-login.php and $_Get['level'] = X

I have read various post about redirecting a logged in user if the go to /wp-login.php. However, my case is a little different. I want my users to click a link that takes them to "/wp-login.php?...
1
vote
2answers
39 views

Redirecting old post url to 404 in wordpress using htaccess

In WordPress I have a post with URL https://www.example.com/article.html. I renamed its permalink to https://www.example.com/article-new.html. Now if I open the old URL https://www.example.com/...
1
vote
2answers
36 views

Redirect all post into some category to url without category

I need to redirect about 200 post into category "ricette","svezzamento" and "alimentazione" to url without category. I have this code but not work. add_action('template_redirect', '...
0
votes
1answer
8 views

Error in /blog redirection - ubuntu default WP installation

I have installed WP from the Ubuntu repositories (18.04) and the domain I got was something like http://snf-XXXXX.vm.okeanos.grnet.gr/blog (notice the blog at the end). After some tries to perform a ...
0
votes
1answer
22 views

Remove all feeds and return custom 404 page

Hello I found the below code on a old post. I have opened up using ftp and created a new plugin folder called my first plugin and created it in the plugins folder - I have opened up my first plugin ...
0
votes
0answers
8 views

why wordpress keeps redirecting to old page after deleting it?

I have a WordPress theme which contains multiple pages one is a contact page, I didn't like this contact page so created another page so the old page I renamed it to https://videommerce.com/contactold/...
0
votes
0answers
5 views

How to set page Restriction in wordpress for specific page and redirect to login page

I want to set restriction in wordpress for specific page. If some one (logout user) come to that page. this visitor will be redirect login page. For example if some one (logout user) come to this url ...
0
votes
0answers
10 views

redirect url issue : pagespeed recommendation

i would like to fix url redirect issue as recommended by pagespeed. after example.com is entered in browser, it is taken as http url which is redirected to https:// url which is further redirected to ...
0
votes
0answers
10 views

Wordpress Staging site is redirecting to live and lost the child theme

I had a staging version for a WordPress site that contained a child theme as the main one, and everything was working well. After a few weeks, the staging site suddenly keeps redirecting to the live ...
0
votes
0answers
9 views

Wordpress page as a landing page on another domain

I have a website xyz.com which is built with Wordpress. I also have a domain abc.com which has no content at the moment. I would like to create a standard Wordpress page on xyz.com , for example xyz....
0
votes
0answers
16 views

.htaccess 301 issue

Getting error in ahrefs for 301 redirect. So my guess is redirect everything to https://. If im not right, let me know :) Anyways, even if my guess is right, cannot figure out how to do it propertly, ...
0
votes
0answers
30 views

Redirect if a user has not written a post

I'd like to redirect two different types of users depending on their role and only if they haven't submitted any post on the site (wether they are pending or published doesn't matter). I am pretty ...
0
votes
0answers
22 views

i want to change URL of WordPress image or rewrite in runtime

this my images url and I want to change( https://oneclickwebsites.co to https://oneclickwebsites.site) https://oneclickwebsites.co/0373990752233591/wp-content/uploads/sites/489/2019/11/image-from-...
0
votes
2answers
39 views

Redirect no product url's to static url

I am trying to redirect non-existing woocommerce product's url's to worpdress page. Example: https://testname.com/product/abc to https://testname.com/sample-page here there is no product published ...
0
votes
0answers
11 views

Adding /ww at the end of my url and redirecting to 404 page [closed]

Have a weird problem on my wordpress site. When checking analytics all my visited pages have a /ww.mydomain.si added at the end of regular url. So my site is www.mydomain.com and when checking those ...
0
votes
2answers
14 views

After switch domain, some parts of my site still point to my old domain

I followed the first two passes of this guide: https://wordpress.org/support/article/changing-the-site-url/ So I edited wp-config.php and functions.php. The site seemed to work in the most of parts, ...
0
votes
1answer
17 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
30 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
17 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
13 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
29 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
19 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
13 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
11 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
26 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 Site Login Redirect

Goodday, I am trying to setup a wordpress auth domain login redirect within the wordpress environment. I would call my site www.example.com. I have www.example.com and site1.example.com. I want to ...
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
17 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
17 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
20 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
41 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
29 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
21 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
10 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 ...

1
2 3 4 5
33