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
32 views

Inapproriate redirection

Below is a part of the code of a plugin. I modified to add the else part. However, I'm noticing some weird behaviour. Before adding the else part, the first part of the code was properly executing ...
0
votes
0answers
14 views

Using cache brokes redirecting

In my .htaccess I have a rewrite rule to redirect from /index.php to /, and it works perfectly immediately after I clear cache, but doesn't work after some time (maybe page /index.php got cached). I'm ...
0
votes
0answers
42 views

WordPress Stopped Redirecting Shortened Child URLs

I'm currently on WordPress 5.3 and just noticed that at some point, shortened URLs stopped working. And what I mean by "shortened" is that you used to be able to just type in the final part of the URL,...
0
votes
0answers
42 views

How to create a WordPress PAGE in another folder?

I have a URL Shortening script running on the homepage while there is a WordPress installation on another folder named blog. So that would look like this https://homepage.com/blog The problem is that ...
0
votes
1answer
79 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 ...
2
votes
0answers
145 views

Why does multisite bypass WordPress for wp-content, wp-admin, wp-includes and .php files?

When you set up WordPress to use multisite, you're directed to modify your .htaccess file to use one of the following, which are outlined in the admin and the WordPress documentation: Subfolder ... ...
0
votes
0answers
43 views

Redirect plugin showing '/false' in urls that reurn as a 404

I'm seeing lots of 404s registered by the WordPress plugin Redirection such as contact-us/false. The user agent that's finding the 404s is Googlebot-Image/1.0 I have Search Console connected to the ...
0
votes
1answer
33 views

Create short URL with auto 301 redirect

I found this post (Create additional short URL with custom field and 301 redirect) and tried to do this with a custom post type I created but it aint working and I dont know what I am doing wrong in ...
0
votes
0answers
40 views

Using shortcode to implement Javascript in Elementor

Objective: To redirect users to different pages after they submit a form in Elementor. The redirection will be based on a javascript variable that is stored. I have given the submit button an ID ...
0
votes
0answers
17 views

How to send new visitor to a splash page for only one time in wordpress?

I have a PHP script that will be the main web platform and would like our NEW visitors that visit our domain to be sent to an (introduction type) Wordpress splash page, and we want this to happen only ...
1
vote
1answer
1k views

Contact Form 7 Data to Whatsapp Link

Is it possible to get the data from the user input in Contact Form 7 to a WhatsApp prefilled text link? I'm trying to get the people who submitted the form to redirect to Whatsapp with the prefilled ...
1
vote
0answers
29 views

Redirect 404 page with ID in slug to associated page with same ID in slug

I got URL's like this: test.com/redirect/p563328-18/ This are pages / urls that doesnt exist (404) but we have custom post types (vacatures) with posts that have the same "id" in the slug: test.com/...
0
votes
0answers
10 views

How can I create automatically changing urls?

I have following issue: I need to add CTA Buttons to my site, that generate, whenever someone clicks on them, a new url. The URL Structure has to be like this: example.com/ref/1001/test The part ...
0
votes
0answers
41 views

Prevent canonical redirect for staging (pre-production) domain only

We have a single wordpress instance that is accessible in two different domains: https://example.com/wp/ and https://staging.example.com/wp/. The first is the canonical site, but the second should be ...
0
votes
0answers
50 views

Multisite network admin login redirect

I have a multisite with two different domain names. I had an issue where I could log in to www.domain1.com/wp-admin and the Network Admin just fine, but if I try to log in to www.domain2.com/wp-admin,...
1
vote
1answer
39 views

Infinite redirects after changing the permalink of a page

I changed the permalink of a page in the WordPress site. It caused to infinitely redirect between the new and old permalink. To test the scenario I changed the permalink several times and now it has ...
0
votes
0answers
18 views

Url for random post (in specific category)

I know that a URL formed: samplewebsite.com/?random will redirect to a random post. Is it possible to create a URL that will redirect to a random post within a particular category? samplewebsite....
0
votes
1answer
84 views

Adding query string parameters to URL with same name as custom post type gives 404 error

I have a Projects page where I use query strings to deep-link to different categories using JavaScript. For example if my URL is www.mysite.com/projects/?theme=blue then I read this query string in ...
0
votes
1answer
74 views

Keep subcategory grandson in slug

I have the categories and subcategories father, son, grandson: -father --son ---grandson When creating an post and mark it only in the grandson category, the correct slug is generated: www.example....
0
votes
2answers
18 views

How to redirect returning users who previously logged in?

There are many answers to how to redirect after login. But my situation is different. In my scenario, we have a landing page where people can login. Once logged in, the users are not logged out for a ...
0
votes
1answer
59 views

WooCommerce and ACF: How to Redirect Upon Add to Cart - Partially Working Example

I'm using ACF on product pages to select a desired redirect URL after the product is added to the cart. Main use for this is to redirect to custom up sell pages. Example: Product A has the ACF field ...
1
vote
0answers
16 views

I get redirected too many times only in wp-admin?

I am trying to run wordpress in a subdirectory blog in my rails app, I used this nginx config as: server { listen 80; server_name _; passenger_ruby /usr/local/bin/ruby; passenger_enabled ...
1
vote
1answer
32 views

How to add new redirection on wordpress site

I have created new website https://example1.com/ and I have one old site https://example.com/. We have a customer support ticket portal and that portal URL is https://support.example.com/. Now I have ...
0
votes
1answer
20 views

Auto redirect to different web page

I am trying to create example.com/abc page for my site but I am getting permalink as example.com/abc-3. When I am entering example.com/abc it is redirecting me to example.com//wp-content/uploads/2018/...
0
votes
0answers
35 views

Wordpress Admin login redirect to homepage

Wordpress admin page redirecting to home page after login, not at all see any admin area. For the console, it is showing 32 redirects. but not sure why it is happening For the console header, it is ...
0
votes
1answer
15 views

Is it possible to take a new visitor to the site to a disclaimer page and then return them to their previous page?

I am new to WordPress and I am looking to add a disclaimer page where they either "Agree" to some terms/conditions or "Do Not Aggree". When a visitor to the site enters, they are taken to the page ...
1
vote
1answer
31 views

Load time cost of using a redirect plugin v direct .htaccess entry

Occasionally, when I inherit a WordPress project developed by someone else, there is a plugin installed to do redirects. On my own projects, I enter all redirects directly into the .htaccess file. ...
1
vote
1answer
37 views

Page template that redirects user based on role

I'm trying to come up with a wordpress page template (acting as a landing page) that redirects a user to another page based on their role. ex. user with role editor goes to landing page and is ...
1
vote
0answers
23 views

How can i resolve 301 redirection Issue on my website?

When I scan my website on (https://www.woorank.com/en/www/fusionfirst.com) I already use canonical tag on my header section. Please check and help me :)
1
vote
2answers
29 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 ...
0
votes
0answers
16 views

Redirection Plugin vs htaccess file for img to page

So i've tried both the redirection plugin and htaccess file and neither seem to be working. I've seen posts here that show the steps and for some reason pages seem to redirect fine with the ...
0
votes
0answers
10 views

adding a second WordPress install to an existing server/URL to migrate over

My goal is to set up a new site that consolidates many previously disparate entities under a unified look and feel. The process involves creating a brand new multisite and gradually transitioning old ...
0
votes
1answer
85 views

Creating a return url for getting data from external api

I am working on a plugin with a payment system. I need to provide a return url for the payment gateway in order to receive its answers. I don't want to create a specific page but to have a kind of ...
0
votes
1answer
255 views

Trying to access second site dashboard on a multisite configuration proceeds to an error

Having this issue that I create a sub-site and when I try to access the dashboard of that sub-site it leads to this error This page isn’t working domain.com redirected you too many times. Try ...
0
votes
0answers
14 views

How can I prevent our new WP site redirecting to the one it's meant to be replacing?

We're in the process of updating our website. The old site and the new site live on different servers. Our domain name currently points to the old (live) site. In our new site's WP admin, I changed ...
0
votes
1answer
187 views

Redirecting from wp-content?

For some reason, Google has picked up a PDF version of one of our articles from wp-content and ranked it for one of our higher-value keywords. I'm looking to redirect that PDF link to a link for the ...
0
votes
0answers
24 views

Where is the location header?

When I curl a page of mine, I notice that it is moved permanently to... itself: PS C:\Users\Ooker> curl -I xn--qucu-hr5aza.com/page/2 HTTP/1.1 301 Moved Permanently Server: nginx Date: Wed, 21 Aug ...
0
votes
0answers
16 views

Wildcard 301 Redirect Using Theme Function

Please I want to Redirect Urls using wp theme function. The both domains are pointing public_html E.g www.example.com/movies/ to stack.example.com/movies/ and www.example.com/movies/anything to ...
0
votes
1answer
76 views

How to 301 redirect sub domain post URL to root domain

We have a subdomain which is implemented in WordPress: https://blog.aisee.co.in/ and it has more than 2000 posts in it. As per SEO perspective, we wanted to migrate the subdomain to the main root ...
0
votes
1answer
42 views

htaccess Redirect 301 doesn't work. How to debug?

I transfer an old site to wordpress. The problem is that there are a few links in the web, that are from the old page and need to be transferred to new slugs. Since I don't want to fill in more ...
0
votes
0answers
400 views

Multisite wp-admin redirecting to main wp-admin using NGINX

When I try to go to the wp-admin of any multi site, it redirects to the main wp-admin. So if I go to example.com/multi-site-slug/wp-admin/ it redirects to example.com/wp-admin/ NGINX is being used ...
0
votes
1answer
38 views

Redirect User when they click Menu Option

I am setting up a new website where I am managing a small amount of clients. I have created a menu page that when the user is logged out it basically just tells the user to login. But I want to code ...
0
votes
0answers
157 views

WooCommerce: /shop/ always redirects to homepage

When I define the shop URL (WooCommerce) as www.domain.tld/shop/ I always get redirected to the homepage (www.domain.tld) when trying to access www.domain.tld/shop/ (I receive a 302 redirect with x-...
0
votes
0answers
29 views

BuddyPress Customizations

I am new to Wordpress and Buddypress. I have a couple of items I am struggling with and would love a little direction. In Buddypress, when you visit a group that is private, you receive a default ...
1
vote
0answers
32 views

Wordpress homepage infinite redirect

My word press site http://octechservices.org has a homepage that keeps redirecting. Just the homepage does this, and I can't figure out why. I believe the redirects are being generated by the ...
0
votes
0answers
20 views

Help with group pages and redirections

I am new at asking for assistance in these forums. So, bear with me please. I am working on a WordPress site that involves BuddyPress groups as well as the membership system that PMPro provides. I am ...
1
vote
1answer
269 views

Redirect /%year%/%monthnum%/%day%/%postname% [closed]

Need to redirect to new structure /%year%/%monthnum%/%day%/%category%/%postname% Saw code that helped before but can't seem to find it. Updated theme and lost the code that went into functions.php. ...
0
votes
1answer
27 views

Expired event redirect to parent category

I build a website for a client of mine, that is going to continuously host events for his area. One of the requirements he has is to expire and remove from the database the events already completed. ...
0
votes
0answers
22 views

How do I set another domain for WP automatic redirects that is not the default domain?

I just migrated my blog from subdomain to subfolder. Then, I realized some old permalink changes on my blog posts are not redirecting correctly. The thing is, when in WP admin, my domain looks ...
0
votes
0answers
28 views

cannot get user login

I'm trying to redirect logged in user to a specific url like this http://www.example.com/author/<username>/?screen=new I have tried using the following code, everything is fine but it does not ...

1 2 3
4
5
34