Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
1answer
11 views

Can't access wp-admin Internal Server Error 500

I suddenly can't access company.co.za/wp-admin, as it redirects to http://company.co.za/wp-login.php?redirect_to=http%3A%2F%company.co.za%2Fwp-admin%2F&reauth=1 with error 500 What should I do ...
0
votes
0answers
14 views

Redirect url on https localhost using social login for Facebook

I'm currently using the current code for Facebook social login on a website I'm making. Under my opening body tag, I have this: <script> window.fbAsyncInit = function() { FB.init({ appId ...
0
votes
1answer
24 views

Redirect to custom admin menu after plugin activation

I believe i have to add this to my plugin to redirect after plugin activation as per https://wordpress.stackexchange.com/a/178504/145078 register_activation_hook(__FILE__, 'nht_plugin_activate'); ...
0
votes
2answers
18 views

Force Wordpress https redirect before www redirect based on site address url

The default web address for a domain is: https://www.example.com If I set this as the 'Site Address (URL)' in Wordpress then it seems to take care of the necessary http -> https and non-www -> www ...
0
votes
0answers
16 views

wordpress site auto redirect to another site when I enable woocommerce

When I enable Woocommerce this message will show at the top of my website backend: Your store does not appear to be using a secure connection. We highly recommend serving your entire website over an ...
1
vote
1answer
22 views

Unable to access folders in same level as wordpress installation

I've got the following structure www/ .htaccess /website1 /website2 /uploads/foo.pdf /websiteWP .htaccess .htacces in root (www/.htaccess) <IfModule mod_rewrite.c> RewriteEngine ...
0
votes
0answers
9 views

Dokan : Redirect after email verification

I am using Dokan Multi-vendor plugin along with WooCommerce. I need to redirect to a separate page after successfull email verification. I am using the following code to redirect but it's not working. ...
0
votes
2answers
37 views

Changing pemalink structure to /%post_id%/%postname%/

I'm currently using permalink structure: /%year%/%monthnum%/%day%/%postname%/ I want to change that to: /%post_id%/%postname%/ I expect it to be: faster (database is sorted by post_id?) shorter ...
0
votes
0answers
14 views

Change permalink structure with post id

I have a blog news from 1 year with around 1500 articles indexed on Google with this permalink structure (I know it is bad...): /%category%/%postname% (without slash!) Now I would like to change ...
0
votes
0answers
8 views

Redirect Search link to specific Category search

I simply want to redirect all search link on my post to custom category search. E.g I have a category named WordPress, and content of the posts on that category already contains links to search ...
0
votes
0answers
20 views

die function redirect to new page

I can't make this portion work. Without the die() function, the whole piece doesn't work as it's supposed to. But with it, it works but first it redirects me to a new blank page. Then i'LL have to go ...
1
vote
1answer
15 views

WordPress keeps redirecting subpages without http to https homepage after switch

I just updated my WordPress site to a full SSL certificate. Everything is working as expected. Only 1 issue I can't solve. After the update I noticed the homepage is being redirected as expected but ...
0
votes
1answer
6 views

Internal redirect from page to category

I want to implement a page, let's say /today-deals that will show all posts under today category, like if we were navigating to /category/deals-for-october-31-2018 but without changing the URL.
1
vote
2answers
28 views

Stop wordpress redirecting www to non-www

I am just transferring over a WordPress site from Server 1 to Server 2. The IP address of Server 1 points to example.com (A record on DNS server) The IP address of Server 2 points to www.example.com ...
0
votes
1answer
15 views

Restrict access if logged out except for homepage

I want to retrict access to my whole wordpress except for the homepage and one other page. The problem I found is that the other page is accessible but not the homepage. My wordpress installation is ...
0
votes
0answers
13 views

WordPress multisite redirects to subdomain

My website uses WordPress Multisite. It points to mysite.site1.com after install ssl for site1.com. but image load mysite.site1.com How to redirect in https://site1.com.
0
votes
1answer
24 views

Redirect regex misbehaving when placeholder empty

I have the following 2 redirects active: /code-examples/(.*) -> /tutorials/android/$1/ and /code-examples/android/(.*) -> /tutorials/android/$1/ The first one has a higher position, so the ...
0
votes
2answers
22 views

Redirect only PDFs in different folders?

I need some help with google indexing old PDF pages. Here is the situation: I have a new URL of new.example.com. The website was rebuilt and the company name has changed. The URL used to be old....
0
votes
2answers
26 views

I used single quote to design HTML of my WordPress blog. Now site redirects to index.php everytime than page.php or single.php

I am actually building a custom theme for my blog and I use single quotes for HTML everywhere like: <div class='div'></div> Does this cause me redirection to index.php?? My site ...
0
votes
1answer
29 views

Some pages redirect to LAN ip

I am trying to make my wordpress installation work behind a nginx reverse proxy. I have tried it with and without ssl, I do not know where to go next. Without the reverse proxy, only from LAN, ...
0
votes
0answers
10 views

wp-admin/users.php redirects to home

I was trying to redirect authors to go automatically to the homepage. But for some reason I can't go to users anymore in the admin menu with my admin account. When i click on users it redirects me ...
0
votes
0answers
19 views

Wordpress website redirecting to /wordpress/ homepage url automatically

A site I developed with Wordpress is redirecting to /wordpress/ when I try to open it via the normal .com link. The home page settings have been changed to make sure it's the static page, and I have ...
0
votes
1answer
30 views

All links redirecting to homepage

All the link on my website redirects to homepage with this text after the domain name /?redirect_to=https%3A%2F%2F%20%2F%20%2F So is /cart /checkout Domain name is nikah.io I have tried changing ...
0
votes
0answers
12 views

Disable redirecting to new site after All-in-One WP Migration

I had an unsuccessful Wordpress migration using All-in-One WP Migration plugin. It likely failed due to PHP version differences between the two servers. When I try to log into my old WP site: www....
0
votes
0answers
16 views

redirect on login after validation

I have a login redirect that works, EXCEPT it doesn't fire on the first login after having validated the new users email address. Here is the code: function admin_default_page() { if (...
0
votes
2answers
29 views

Redirect to other page if login

I have a home/static page with login button. Currently I've set the button url as "http://example.com/login" How can I set the login button to redirect to a specific page IF/WHEN the user is logged ...
0
votes
0answers
18 views

Change WP_HOME & WP_SITEURL redirects from 301 to 302

I have a domain like example.com and a subdomain like subdomain.otherdomain.com which are parked on the same server. And I set WP_HOME & WP_SITEURL to example.com. Now when I enter the site with ...
0
votes
0answers
33 views

Skip Privacy Page settings at installation

We have a custom theme installation system that redirects to an options page after installation. In this page we have an privacy policy generator. The issue is that after the recent privacy policy ...
1
vote
0answers
30 views

Alias 'wp-content' directory to something shorter (framework?)

I recall seeing this as a feature of a Wordpress Development Framework, so I know it's possible (can't remember the framework). I am interested in how to condense the Wordpress-generated urls to ...
0
votes
1answer
26 views

Relative redirects for posts, categories, products and product categories

I imported all content from an old site to a new one. The old site was basically a catalog of products and blog posts. However, it was all built as standard WP posts - not custom post types. The new ...
0
votes
1answer
34 views

Redirection on domain name

I'm currently debugging a Dutch WP website https://glaszetterdirect.nl The problem is that I get an unwanted redirect from: http://www.glaszetterdirect.nl to https://glaszetterdirect.nl/wp-admin I ...
0
votes
0answers
12 views

Windows IIS7: Wordpress redirecting to home page after press login submit button

I have setup the WordPress website on windows IIS7 web server with MySQL. Through the IP address my website and admin login is working fine. But after i switched the IP to URL(https://www.carine.ae) ...
1
vote
2answers
35 views

How to redirect subcategories to a page?

I want to redirect all subcategories who belong to the category named symptoms to a same page. I did this: RewriteRule ^category/symptoms/(.*)$ https://my-site/com/list/$1 [L,R=301] Wordpress ...
0
votes
0answers
10 views

Page redirect based off password from single entry point

I am looking for my best path forward for having my main index.php have a simple form that users enter a password into. From there, depending on which password they enter, they are directed to a sub-...
0
votes
2answers
22 views

Swapping current old site to new WordPress site - need to check I'm doing it right

I'm new to WordPress and have been developing a new website that will replace an old non-WordPress site. WordPress is currently installed in a subfolder whilst I've been creating the new site and it's ...
0
votes
1answer
25 views

Moving my site from localhost to server - too many redirects

I want to move the site I was working on on localhost to a testing server. I have copied the database over as well as all the files. I want to be able to run my site from the testing server with the ...
0
votes
0answers
15 views

How to create an exit page in wordpress with 5 seconds redirect duration for all external links

I want to create a page for my blog, which contains a custom redirect page content. When a user on any external link from the whole site, it redirects to that page and there I want to display a ...
0
votes
1answer
25 views

How to redirect non-admin/editors from specific pages?

I am trying to "hide" one specific category and all posts on that category by redirecting all links to the homepage. Currently i am using the below on .htaccess Redirect 301 "/coming-soon/" "https:/...
0
votes
0answers
10 views

Redirect /page/number/amp to /page/number/?amp

How can i redirect the link examplesite.com/page/1/amp to examplesite.com/page/1/?amp, but i want this to be dynamic. Thank you.
0
votes
1answer
20 views

How to fix automatic redirects?

All page links of my wordpress website are automatically redirecting with additional string which looks like this "/#.W6nTIaV-7pE" eg: https://supremeip.com/Trademark https://supremeip.com/Trademark/...
0
votes
0answers
18 views

Redirection to the WP_HOME

I have several WordPress sites and some of them have a more complex setup where there are multiple application servers running PHP FPM and nginx and a load balancer to cover them all. All sites run ...
0
votes
0answers
13 views

passing registered query string param to home page results in unwanted redirect to page listing all Posts

In certain instances, I need to pass a query string parameter to my home page. Ex: http://uat1.one-pager.sugarloafculinary.com/?lbcid=SOME_VALUE. I use the value of this param in my child theme's ...
0
votes
1answer
20 views

How to make a redirect link in wordpress?

How to make a redirect link in wordpress. My site has two domain. I just wanted to set 1 link only and the redirect link is from domain A to domain B. I want to make a redirect link from
0
votes
0answers
28 views

How can i redirect user to specific page

I have a WordPress site for the property management, I have 6 properties in the different city managed by the different property manager, I would like when tenants are login redirect them to the ...
0
votes
1answer
15 views

Redirect /member/ to /member/user

Is it possible if an user is loggued to redirect /member/ to /member/user ? (User is the display_name) If yes, how can I do this ? Thank you ! :) thanks to Jack, I tried to search on google "Wp-...
0
votes
0answers
13 views

Redirect sub pages but load them with ajax

I redirect subpages. (site.com/page/2 to site.com) But then when loading these subpages with ajax (load more), they do not load. How to both redirect the subpages but also load them with ajax?
-1
votes
1answer
27 views

How to handle expired assets/content when user has direct URL

An E-Commerce site has PDF coupons that expire after a certain date. What is the best way to handle them? I've heard allowing 404's aren't great for SEO and 301 redirects can clog up the .htaccess. ...
1
vote
3answers
63 views

Redirect users based on custom field

I'm a novice at Wordpress and i'm pretty sure what i'm looking for is really easy. I have an issue with a function that doesn't work : function user_homepage() { if ( is_user_logged_in() ) { ...
0
votes
1answer
22 views

User is logged in after Stripe payment, then redirected, but is then logged out again

In a plugin, after a Stripe Checkout payment is processed, an account is created, the user is logged in, and then redirected to a "thank you page". On this page, only about 1/3 to 1/2 of the users is ...
0
votes
1answer
33 views

I've removed my /author/ slug but it clashes with new and existing pages. Any fixes?

I've successfully removed my author slug using this tutorial: https://wp-snippet.com/snippets/remove-author-prefix-from-slug/ so it's like website.com/author/cixxy to website.com/cixxy My question ...