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

Add base folder to CPT and 301

I am developing a WP install that is using a third party plugin that interprets searching the data in an unusual way. In short, the rebuild has made the URL structure change for taxonomies, from ...
0
votes
1answer
3k views

Why are all pages redirecting to homepage when using custom permalinks?

My website http://laptopre.net/ is running on WP 3.4.2. When I changed the Permalinks setting to Custom Structure - /%category%/%postname%/ , all the pages in my site are redirected to homepage. ...
1
vote
1answer
24 views

Use virtual pages point to one specific page

How should I approach this issue? I want to create one page, but many "virtual pages", e.g. like a productinfo.php. A product has several. In this case you manually create the posts in the ...
0
votes
0answers
13 views

Is it possible to change redirect template through a shortcode?

I have added a redirect for my plugin in init: add_rewrite_rule( 'city/([a-zA-Z]+)/?$', 'wp-content/plugins/csv-to-html/templates/csvtohtmlpage_core.php?city=$1' ); When I go to <site>/city/...
0
votes
1answer
21 views

How can i fix my permalinks?

I have a WordPress site using permalinks that has about 350 posts with URLs that are using this general format: https://www.example.com/1087-post-name/ The upper link format is like: /%post_id%-%...
0
votes
1answer
936 views

Custom redirects with using SQL

We have pages with urls like this: http://example.com/?page_id=3&user_id=5 http://example.com/?page_id=6&user_id=9 etc. page_id and user_id located in table MySQL Database. And this table has the ...
0
votes
1answer
760 views

Custom Login Plugin Redirects to wp-login.php After Site Migration

I am using a custom login plugin I made for my site, it was working fine before migration but now it redirects to the wp-login.php page. Old Site -> http://prep.kevinmamaqi.com/ (still available ...
0
votes
2answers
29 views

Front page is being directed to an unknown site

Unless I type the URL of my site as example.com/wp-login.php, with URL typed as example.com, the front page is automatically directed to the following unknown site: https://elementonfor.live/?...
3
votes
0answers
191 views

Sub-subdomain getting redirected to main domain

I'm working on a multisite network. I intend to make it a subdomain based network but cant seem to make it work because of the redirects. The main multisite network resides under app.trainergoesonline....
0
votes
0answers
10 views

login form should redirect to register page for in 1st login next time it should redirected to home page

I'm new to WP I need your help in redirect the user only for 1st time logging, in my landing page, 1 created a login form if the user logged for 1st time means it should redirect to register page and ...
1
vote
4answers
2k views

Redirect - remove custom query string

I have a problem with some page URLs. The page URL structure is like this: www.example.com/wp/custom-taxonomy/somepagename/?token=12345 I want that when I access the URL above to redirect me to: www....
1
vote
1answer
21 views

Wordpress category page redirects in .htaccess not working

Wordpress automatically generates category pages, for example: https://planthardware.com/category/microgreens/recommended-equipment/ I want to redirect this to a custom page, for example: https://...
5
votes
4answers
4k views

Stop WordPress and Plugins from Overwriting .htaccess

How can I prevent WordPress and plugins from overwriting my .htaccess file? I use Wordpress to set the structure of my permalinks; so I doubt it is practical to deny all permissions to the file. If ...
0
votes
1answer
712 views

Redirect posts to sub domain except pages

We have a WordPress site, which contains posts and pages. Now we moved posts into sub domain but we kept pages into root domain. Only Posts has .html extension and there is no difference in the URL ...
0
votes
1answer
1k views

how to redirect page after delete post inside a post page?

so on theme single.php i want to put delete button so they can delete the post directly. After the post deleted then the page will redirect to profile page. here's the delete button html <a class=...
0
votes
1answer
1k views

How to override post-new.php with custom template

How can i override post-new.php with my custom template. When i include file or simply redirect i see my template but admin sidebar is missing. I know it is not simple.
1
vote
0answers
22 views

Check Page requested, and redirect

I am trying to capture what page is being requested, then drop a cookie and (ultimately will forward on), but for now just echoing a result and then exiting. The page I am looking for is called ...
0
votes
1answer
2k views

My WordPress site redirects to port 8082

I have a wp site that was working on a dev server on port 8082. After we decided the site is done, we transferred it to another server. However something in the site redirects to 8082 despite the fact ...
0
votes
1answer
13 views

Redirect Existing Post to CPT

I want to redirect the existing posts (nearly 2000) to a custom post type (say news) without interrupting newly created normal posts say (apps) after that, would that be possible?
0
votes
0answers
20 views

Wordpress url By country code?

I want to add country code to wordpress url by getting user ip address, which should be implemented dynamically. For example if user is from Australia, all website url will be like below: http://test....
0
votes
1answer
2k views

Check if redirected from a specific page template

I have a page template, which redirects to the homepage using this: wp_redirect( home_url() ); Now, on the homepage is it possible to check if it has been redirected from a specific page template ...
0
votes
0answers
11 views

Redirect after submit button in modal - how to return to page from where modal popped up, or automatically close modal? [closed]

I suppose this isn't Wordpress specific, but trying to figure out if there is a Wordpress way of doing this. I am using BBPress, and on some page, such as https://somesite.com/lesson/some-lesson/, I ...
2
votes
1answer
2k views

Firing a function AFTER redirect

I am using a function that redirects the user to a custom page, rather than wp-login in the event of errors. In my case I am using the Http Referer function to send the user back to the same page ...
1
vote
1answer
773 views

Redirect to "All Posts" after post update or publish in Block Editor

When anyone presses Publish or Update from the Block Editor in a CPT, I would like them to be redirected to the CPT listing page. (Users are typically editing many of the CPT at once, so this will ...
0
votes
0answers
11 views

How do redirect user back to previous page when on certain pages?

I want to create a redirect such that when a user logins from example.com/sell/* then redirect the user back to referring page.
4
votes
2answers
3k views

Wordpress multisite subdirectory redirect infinite loop issue

Any time I create a new site on my multisite install, I get an infinite loop redirect when navigating to that site's admin. I'm using the default htaccess supplied by WP for my subdirectory install. ...
2
votes
2answers
4k views

Remove Query String from URL on Redirect - Redirection Plugin

I am trying to remove the query string from my URLs when I redirect them but it is preserving them. I can't get the regex right. Also, I have multiple templates that redirect to different urls so I ...
4
votes
2answers
3k views

Wrong canonical link on wp-admin pages

I have a subdomain: https://blog.example.com/ I forcibly redirects to directory: https://www.example.com/blog By changing site URL and some RewriteRule on .htaccess. My .htaccess: <...
0
votes
0answers
21 views

Identify User Language, Redirect to the corresponding page and Save the chosen language as Cookie

My site has language versions, autogenerated by GTranslate.io. e.g.: www.site.com/en/ www.site.com/fr/ www.site.com/es/ www.site.com/de/ ... I'm looking for a way to identify a visitors browser ...
8
votes
3answers
7k views

Why is WordPress Multisite redirecting to wp-signup.php and how to fix it?

I have recently set up a second blog on my Wordpress multisite. The primary blog on the Multisite is www.example.com, and the second blog I have set up two days ago is www.example2.org. Unfortunately,...
0
votes
1answer
1k views

Stop forcing certain paths to end with a forward slash

As far as I understand, WordPress prefers a trailing slash at the end of your URL. However, it applies this rule also to https://example.com/amp, so I get a 301 Redirect to https://example.com/amp/. ...
0
votes
1answer
889 views

Bookmark anchor link to load another page first before completing?

Question: is there a way for a link to an anchor bookmark to arrive at its destination by loading another page first? I'm developing a vertical-scrolling style website where the home page displays ...
0
votes
1answer
19 views

Deleted Image giving a 301

I have images that were deleted from the site (the page and the media library) but are still being requested which can be seen in the network tab. They are redirected and take a huge amount of time ...
5
votes
2answers
990 views

Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess

For a long time I served my blog from http://www.murrayc.com/blog/, with the wordpress installation in /home/murrayc/murrayc.com/blog/. Now I've moved it to http://www.murrayc.com/, without moving the ...
1
vote
1answer
624 views

Redirect all posts permalinks from ".html" to "/"

How can I redirect all posts permalinks from .html to / in WordPress? To be more clear, for example, a post URL like this: http://example.com/%category%/%postname%.html To be redirected to: http:/...
1
vote
1answer
26 views

set up 301 redirect within wp-content/uploads/ directory of a WP site to a new image URL

I need to do a redirect within wp-content/uploads/ - to a new image name, because the old one doesn't work. How do you do this? I want to redirect from https://example.com/wp-content/uploads/2021/09/...
1
vote
1answer
1k views

Multisite Redirection to new domains

I have a multisite website with 5 domains in WordPress which uses WordPress MU Domain Mapping plugin. I want to redirect every subpage to new domain, but we will be still using the homepage, because ...
1
vote
1answer
18 views

add_rewrite_rule fro html to another url not working

I want to redirect mywebsite.com/anyname.html to mywebsite.com/product/anyname For that I write the following query in functions.php . But it is not working . Please see my code below function ...
0
votes
3answers
3k views

My site is being redirected to itself

I have been told that my website is redirecting to itself – but I don't know what this means. I was told that this is the reason it does not show up in Google and Yahoo. My question is, where is the ...
0
votes
1answer
2k views

Pagination redirect set in .htaccess file is not working

I'm trying to redirect like below but it's not working. http://example.com/page/2 -> http://example.com/item/page/2 Below is the source of .htaccess file: RewriteEngine On RewriteCond %{...
0
votes
1answer
575 views

WooCommerce Registration redirect based on page ID

I am trying to change the WooCommerce Registration button redirect link. This is the code I use for the redirect (which works just fine): function custom_registration_redirect() { if(...
0
votes
0answers
13 views

How to access wp-admin from original website after setting the domain redirect/forwarding

Is there a way to access wp-admin from the original website after setting the domain redirect or forwarding? Hope this makes sense.
0
votes
0answers
20 views

The / location 301-redirects to itself in a loop

Lets say my Wordpress site is https://example.com, and when I visit it, I keep getting 301 redirected to https://example.com. This happens only with /, all other pages are working. I have tried to ...
3
votes
2answers
2k views

Why wordpress multisite redirect to wp-signup if site exists?

I just create a site on my Multisite domain (example.com), for instance site1.example.com After this, I try to enter on https://site1.example.com/wp-admin, but I'm redirected to https://www.example....
0
votes
1answer
1k 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, ...
4
votes
1answer
2k views

Site redirects to wrong url when saving settings

I have a subdomain: https://blog.example.com/ I forcibly redirects to subdirectory: https://www.example.com/blog By changing site URL and some RewriteRule on .htaccess. Now the website and admin ...
0
votes
2answers
26 views

Relink Drupal Permalinks "...node/XXXX" to wordpress Permalinks (e.g./audio/<name-of-the-post>)

I have a huge problem! I am in the middle of migrating a drupal based online database to wordpress. In the old database every object (post) had downloadable qr code. Because the database is used for ...
0
votes
2answers
1k views

Custom Post Type canonical link / pagination redirecting to root

I have inherited an existing site and have recently been asked to make some changes. They have 'renamed' the default post as 'latest-news' using this 'my_new_default_post_type': <?php add_action(...
0
votes
2answers
2k views

Why is WordPress redirecting to homepage after GET form submit?

<form method="get" action="example.com/?category=1"> <input type="submit"> </form> action parameter may be any page etc. but it always redirect to homepage. If I change method ...
0
votes
1answer
1k views

wp-login.php?redirect_to=https problem

wp-login.php?redirect_to=https problem Please forgive me if I am posting in the wrong place but I am here to see if you can help me with some minutes of your time. The problem is a website showing ...

1
2 3 4 5
36