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

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.

0
votes
0answers
15 views

High CPU usage during member login [on hold]

There are some rules for opening adult content sites in my country. Therefore, it is mandatory to put an entry form on the site. I'm using the plugin named redirect to login if not logged in. Those ...
0
votes
0answers
11 views

How to 301 redirect from one url to another properly

We have recently done a massive migration from a custom CMS to Wordpress CMS however want to figure out the right way to do 301 redirects from a situation where their previous URLs did not have any ...
0
votes
1answer
15 views

Custom Route Returns 301/Passing Variable from Input

I'm trying to register a custom route to validate a groupon voucher code for a landing page. I registered the route in functions.php like so: // Adding Custom Voucher Route add_action('...
0
votes
1answer
13 views

Wp-admin Redirection loop after moving to subdirectory

I've moved my Wordpress files from public_html to a subdirectory public_hmtl/my-site.com. I've changed my .htaccess in the public_html directory by RewriteEngine on RewriteCond %{HTTP_HOST} ^my-site....
0
votes
2answers
20 views

How to use login_redirect with a user capability

The following code should redirect the user to a specific page if they have the manage_woocommerce capability or higher - but it doesn't and just goes to the main dashboard. add_filter( '...
0
votes
0answers
23 views

Redirect a login form, if referer contains URL query string parameter

I am trying to redirect a default WP login form, if it's HTTP referer contains some specific query string parameter. Scenario: I need to redirect new users (the ones who just created their passwords ...
0
votes
0answers
9 views

Redirect based on referer using Advanced Custom Fields

Im currently trying to protect some WP pages by assigning a specific template to them. Ive created the ACF fields "Referring URL" and "Redirect URL", as these could alter depending which page the ...
0
votes
1answer
11 views

Non-www is redirect to admin page

The website is redirecting domain.com (non-www) to the admin login page. I don't want that. www.domain.com is showing the website in a correct way. Anyone knowing the problem with the non-www ? ...
1
vote
2answers
19 views

How To Fix 404 errors caused by Google Indexing Wordpress In Subdirectory

I moved WordPress out of the root of my server into a special folder of its own and now Google is indexing my posts together with that special WordPress folder thus creating some 404 error issues. ...
0
votes
1answer
16 views

How to create mass 301 redirects with PHP in Nginx server without using a WP plugin

New on Nginx based web server setup and finding a way to create mass 301 redirects in a WP site without using any plugins. It is fairly easy in Apache based web server as you only need to put this at ...
0
votes
1answer
29 views

Redirect 301 of old urls to wordpress urls

I am migrating a website from vivvo cms to wordpress. Vivvo is using category pages like index.numberofthepage.html I want to redirect urls like using regex: https://www.example.com/mycats/index.200....
1
vote
1answer
19 views

redirect automatic page that serves custom posttype content

I registered blog as a custom post type. This content is queried on the page page-actueel-blog. But mydomain.com/blog also serves content (by default titles are queried). I don't want visitors to ...
0
votes
1answer
18 views

Redirect to login page when single job listing is clicked - WP Job Manager [closed]

I'm setting up a new wordpress site, which is using WP Job manager. I need some help with the code to create a compulsory login to view the single jobs posts once clicked. I have tried using some ...
0
votes
0answers
20 views

How to redirect to specific url if contains specific text in url?

I am new in WordPress and I am trying to create a plugin that redirects to the target by picking up the same post from source URL to target URL. The user just needs to enter the URL he wants to ...
0
votes
1answer
26 views

WordPress redirects to login page when I enter url.com/index.php

WordPress redirects to login page when I enter url.com/index.php or just http://url.com. When I enter with https the opens normally. Please help.
1
vote
0answers
17 views

Can't control Wordpress Addresses from admin panel

I have already created several sites in WordPress and I have always been able to manage the link of my site with or without https and with or without www through the settings in options > general, as ...
0
votes
1answer
52 views

Wordpress multisite subdirectory on nginx behind reverse proxy

I can't seem to make wordpress multisite subdirectories work behind my reverse proxy. Locally (from lan ip addresses) all works, I can access the main domain, sub-directories and all dashboards. The ...
-1
votes
0answers
16 views

Redirecting old permalink structure to new htaccess

Hello a week ago i changed permalink in wordpress and google webmaster receive 404 errors please help me with a htacces rule to fix the problem. https://example.com/postname/ to https://example.com/...
0
votes
2answers
13 views

HOW do you Redirect buddypress login to EDIT tab not PROFILE tab on profile page? [closed]

HOW do you Redirect buddypress login to EDIT tab not PROFILE tab on profile page?
2
votes
1answer
36 views

Cant Access Website - Changed HTTP to HTTPs

Was playing around with settings and changed HTTP to HTTPs. I'm now getting a message that says "Index of /". Any idea how to change it back to HTTP or login to the website?
0
votes
1answer
28 views

Custom URL routes

I'm a newbie in Wordpress, so excuse me if I ask a noob question. I want to redirect some of the URLs to a specific page (single-deal.php). Now, these set of URLs (regex provided for these URLS) does ...
0
votes
1answer
16 views

Redirect From Url To Url

I want to redirect the same directory, but different url structure. The url structure I use: http:example.com/car/cadillac/image/2 I want to direct http: example.com/car/cadillac/image/ url. Because ...
1
vote
2answers
36 views

Redirecting old permalink structure to new in htaccess

I recently changed the permalink structure on my 2-month-old blog to a user friendly one which means a whole bunch of 404s. I wish to redirect the following: https://example.com/poastname.html to ...
0
votes
0answers
18 views

Wordpress redirects to backend when i'am not logged in

When I open my main url (https://ausbildung.sikler.de) something automatically redirects to the backend (https://ausbildung.sikler.de/UP1/wp-login.php?redirect_to=%2F When I log in I can see the page (...
0
votes
1answer
30 views

Pretty Permalinks with CTP and Taxonomies / Hierarchical

My Site has 2 Custom Post Types with a 2 Taxonomies. One taxonomy is “Location” which is 2 level / hierarchical (Country, City). My goal is to get our Post Types & Taxonomies in a SEO Pretty ...
0
votes
1answer
8 views

How to experiment with permalink structure on a select number of posts

If I wanted to experiment with a new permalink structure on select posts, would creating a list of 301 redirects be the best route to take? I shouldn’t have to touch that 301 list when I want to flip ...
1
vote
1answer
46 views

Home page with Polylang redirects to other page

On my website : https://www.littleguestcollection.com/, the homepage is redirected to other page (this one : https://www.littleguestcollection.com/fr/hotels/lux-tamassa/). I have no idea what is the ...
1
vote
1answer
29 views

.htaccess rule to redirect old URLs to new structure [closed]

The old URLs were in the form: https://www.example.com/collection/item/item-name-123 The new URLs are in the form: https://www.example.com/collection/item/123 I'm attempting to redirect any hits ...
0
votes
1answer
30 views

when contact form7 submited domain redirects to example.com means (example domain)

When contact form7 is submitted the domain redirects to Example Domain. Here is the image and this image is shown instead of my website page or my domain
0
votes
1answer
36 views

Disable “similar permalink” redirect [duplicate]

I have set a post to private on a WordPress multisite so users should be redirected to a 404 page. The permalink of this post is http://local.website.com/en/event. Now WordPress seems to redirect ...
0
votes
1answer
34 views

Wordpress 302 Redirect to Random Product/Post/Page

I'm trying to add the ability to redirect a user to a random product/page/post url similar to example.com/page/random which would redirect to example.com/page/oneofmany. This question is not ...
0
votes
1answer
40 views

Redirect after plugin activation

I am not a techy guy so please explain in simplest ways how can i solve this problem . When i install a plugin ( it does not matter which plugin) and then press to activate it , it redirects me to ...
1
vote
1answer
12 views

Local Environment Stripping Port Number…help tracking down the redirect?

I am trying to set up my site on a local environment using MAMP. When I install my theme onto the local environment, the theme seems to try and redirect the site away from the URL with the port number:...
-1
votes
0answers
25 views

Wordpress template_redirect Not working as requested

I found this code to redirect a whole category to a new domain add_action('template_redirect', 'post_redirect_by_custom_filters'); function post_redirect_by_custom_filters() { global $...
2
votes
1answer
28 views

Bulk 301 redirect for custom post type

I've amended the URLs for my custom post type from: url.com/jobs/job-name to url.com/jobs/job-location/job-name Problem is, because this isn't a standard rewrite wordpress doesn't do the 301 ...
0
votes
1answer
14 views

Redirect loop with similar URLs

I want to redirect a page that ends in mysite.com/fall to mysite.com/fall-2019 I've renamed the original page permalink of mysite.com/fall to mysite.com/fall-old and to a 301 in the .htaccess that ...
0
votes
1answer
65 views

I get “too many redirects” problem when migrating localhost site

So, I have a website working properly on my localhost but when I migrate it to hosted server I get too many redirects error. I've done migrations before and this never happend but this time. ...
0
votes
4answers
463 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 ...
-1
votes
0answers
94 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
27 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
29 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
29 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
13 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
102 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
1answer
33 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 ...
-1
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
21 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.