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

Having issues with Google indexing when using a cookie redirect splash page

I'm currently having issues with a site which is not able to be indexed due to a cookie redirect function that's in place. To summarize; when a user lands on the webpage for the first time they will ...
1
vote
1answer
27 views

Create a permalink to a pdf?

I have a website where I want the permalink to my resume to be www.example.com/resume, so that whenever I send someone that link, it goes to the most recent version of my resume. But I don't want my ...
0
votes
1answer
28 views

How to make my homepage automatically redirect to an external website?

Actually, I have a website hosted by my University. They claim that it is my personal website or whatsoever, but they do not give me full control of it! I cannot install plugins, change the theme, or ...
2
votes
1answer
39 views

Custom Post Type without an archive page

I have a custom post type called book where I set 'has_archive' => false. When I access mywebsite.com/book, it's loading mywebsite.com/book/book-1, but I'm expecting load the 404 page. Is this a ...
0
votes
0answers
11 views

Why is the subcategory redirected to single.php?

When accessing the url site.com/name-category/name-subcategory I want to use a specific template but the Wordpress is understanding that name-subcategory is a post so it redirects to the single.php ...
0
votes
0answers
11 views

How do I redirect the browser to 404 page, if no posts are found in home page

I am listing posts on the homepage with pagination and if no posts are found on the home page. I want to redirect the page to 404 page and get 404 response code. For example, example.com/page/200 Page ...
1
vote
1answer
34 views

How to remove duplicate and unnecessary part in a url using htaccess and regex?

I want to permanently redirect some URLs that have been removed and robots insist on following it. I have the default WordPress configuration for .htaccess. www.example.com/customers/em/customers/any-...
0
votes
0answers
31 views

Redirect after the registration

I have 2 registration pages, one for Korean, and one for English. The Korean registration is okay. The page /register is redirect to /checkout page. (registration leads to subscription based) after ...
1
vote
1answer
9 views

I need to redirect an entire subdirectory in WordPress to the homepage - is this correct?

To redirect ALL the pages within a subdirectory I can use this .htaccess rule: RewriteRule ^subfolder http://www.example.com/ [R=301,L] My question is: can I simply use this exactly as prescribed? ...
0
votes
0answers
11 views

How to redirect to a page with $_GET parameters [closed]

I'm trying to redirect to a page with a post edit forum, using the post ID as part of the $_GET parameters. I want users to be able to edit published blog posts using an edit form, but I can only ...
0
votes
0answers
33 views

How to redirect old custom post type urls after new permalinks structure?

I have 20,000+ WordPress Custom Type Posts and want to change their permalink structure from: abc.com/word1-%custom-post-name%-word2 to: abc.com/%custom-post-name%-word3-word4 I am not using the ...
0
votes
0answers
17 views

how can i redirect dynamic URL in worpress base on ID in htaccess or wp-config or function.php

I want to redirect 301 worpress.com/NewsInfoPrint?id=13624 to the below URL wordpress.com/news/13624/ // number is post ID in WordPress and I need for all posts to do that, so the number is dynamic ...
0
votes
0answers
23 views

Hidden permalink different from displayed permalink

I am working on a website which I did not create on WordPress for a company and I am running into the following issue. Structure Category: fruits Sub-categories: red, yellow, orange Items: apples, ...
0
votes
0answers
15 views

SSL is working on https://yourdoorstep.co but not working on https://yourdoorstep.co/advice/

We are facing a problem with our one of our website https://yourdoorstep.co = SSl are working fine on it same is in php but https://yourdoorstep.co/advice/ is in worpress in subfolder ... same indexed ...
0
votes
0answers
15 views

How did Home Way only redirect for those who arrived?

For example, a user who is not a member of the site sees the home address with the same address. And the user who has logged in to the site home page yousite.com/panel ,See
1
vote
1answer
29 views

How to redirect user after login to a specific page?

I have a page with mixed content in three different tabs. The first tab is open access to all but the content of the last two are for logged in users only so by sending the users to login with: <p&...
2
votes
1answer
53 views

Changed permalink structure. Need help with redirecting old posts

I just changed the urls structure of my site and want old urls to be forward to the new without the use of redirection plugin. Old structure: /%category%/%year%/%day%/%postname%/ New: /%postname%/ ...
0
votes
1answer
20 views

remove SLASH on single_post but KEEP on categories and parent pages

My current permalink structure is  /%category%/%postname%/  which produce urls as: (category_base removed using "FV Top Level Categories" Plugin) category: example.com/class-10/science/ ◀▬...
0
votes
0answers
30 views

Use a 301 to Redirect any 404 from at the blog post level to the blog archive

In the .htaccess file, I am trying to write a 301 to catch any broken blog page links to redirect to the blog archive page? so something like Redirect 301 /blog-archive/category/{any 404} /blog-...
0
votes
1answer
29 views

How force Wordpress redirect to current custom page after login

Problem: After login Wp redirects to either wp-admin or home (front-page.php) and not back to current page I want the user to return to where he/she came from. Ok, so this is what I've got: I have a ...
0
votes
1answer
31 views

Page get parameter doesn't work with is_single() function

If exist the page parameter in the blog post, I have to redirect to the 404 page instead of current post URL. I tried to check the current page type (is singular) and try to get page parameter in the ...
1
vote
1answer
37 views

Faking “Same Slug Root, Multiple Custom Post Types” with Redirects?

I know you can't have: /my-cpt1/name-of-post-1/ and /my-cpt2/name-of-post-2/ both live at: /my-ideal-root/name-of-post-1/ /my-ideal-root/name-of-post-2/ But I have a situation where I have ...
1
vote
2answers
30 views

Redirect to one of two pages after data submitted, depending on the current url

This is about the functions.php file. I have a homepage with two links to enter data into either this form (refinance) or that form (purchase). Both forms have identical fields, just one question is ...
0
votes
1answer
8 views

Issues with static pages redirecting towards home.php

I have some issues with my WordPress website theme. At some point in the creation of the .php files used by the themes, something went wrong. Basically, if I use the post title to create the ...
1
vote
1answer
23 views

Can Wordpress pass through a call to an external API and return the result directly to the client?

I have a wordpress site that will be replacing an old legacy site, however the old legacy site includes a SOAP API that I won't be able to re-implement in wordpress. Is it possible for the wordpress ...
0
votes
1answer
17 views

Hide a Post everywhere except on redirect

I have many user contactmethods on my Profile page. If the user has not completed them all, then every time they log in they are supposed to be redirected to a "Reminder" post. But I want ...
0
votes
0answers
8 views

WordPress redirecting Register page to login page

When a visitor wants to reach https://ostadziya.com/register, it will automatically redirect to the login page. The URL is https://ostadziya.com/login/?redirect_to=https%3A%2F%2Fostadziya.com%...
0
votes
1answer
24 views

Redirect an archive page to its relevant URL-friendly filtered page

I have URL-friendly filtering plugin enabled (WP Grid Builder) and I want to utilise this for the category archive page. I want to redirect an archive page https://tag.alfian.co/blog/category/branding/...
1
vote
1answer
23 views

wp_enqueue_style - CSS Not loading - ERR_TOO_MANY_REDIRECTS [closed]

Following a change to .htaccess in public_html to attempt HTTP->HTTPS redirection CSS began failing for my site. Reverting the file didn't help so I chose to press forward with changing all ...
1
vote
1answer
26 views

Wordpress on a local machine redirecting to xampp dashboard page [closed]

I just decided to learn Wordpress, I created new site successfully with name of 'unique-university' using flywheel but when I click 'OPEN SITE' It redirect me to Xamppp dashboard page 'http://...
1
vote
1answer
45 views

https://mydomain/wp-admin redirects to wp-login.php?redirect_to=https%3A%2F%2Fmydomain%2Fwp-admin%2F&reauth=1

Whenever I enter https://mydomain/wp-admin while not being logged in, I get redirected to wp-login.php?redirect_to=https%3A%2F%2Fmydomain%2Fwp-admin%2F&reauth=1 With some help, I have created the ...
1
vote
0answers
10 views

Redirect my 2020 and 2019 posts [closed]

Do you know a method to redirect all links in one go from my 2020 and 2019 posts? My permalinks are like this: https://website.com/%postname%/ I have a quite a lot of posts and I don't feel like doing ...
1
vote
1answer
24 views

Redirect homepage with htaccess, except if I enter the link adding “/home”

I'm trying to do something specific here, that may be a little complicated and I can't figure out how to do it. This is what I have with htaccess: RewriteOptions inherit RewriteCond %{HTTP_HOST} ^...
1
vote
1answer
36 views

Redirect subdomain in Multisite installation?

One of my clients has a Wordpress site that is a multisite installation. They are running a new campaign that I have set up as a page under the main site at example.com/summer/. However, they sent ...
0
votes
0answers
21 views

Better, more efficient redirecting

I'm working on fairly large corporate site and the redirects are starting to build up. It's going to get even more numerous as we are going to unpublish all blog, news and pr posts older than two ...
0
votes
0answers
23 views

Is the default value of FORCE_SSL_ADMIN documented?

(Update. I rephrased the title since I understood better meanwhile what was going on.) Dealing with an attempt to understand HTTPS redirection, I ended up seeing with a massive grep -r '...
1
vote
0answers
26 views

Conditional Login Redirect

I'm currently using the following code snippet to redirect admins to the admin dashboard and normal users to a specific site upon logging in. function my_login_redirect( $redirect_to, $request, $...
0
votes
0answers
17 views

Wordpress redirect to initial landing page

We have 3 landing pages, for 3 target customer types, with different deals. The issue is that customer lands on a page, then click around the other pages in the site, then goes to a generic "...
1
vote
0answers
59 views

503 Service Unavailable error was encountered

When I try to upgrade PHP to version 7.4 or 7.3, I get the following error: Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity ...
0
votes
1answer
33 views

Redirect htaccess [closed]

I need to help with redirect my page. For example I have websites https://example.com. I need to move content from https://example.com to https://example.com/blog. That is not problem and I do that ...
0
votes
0answers
24 views

redirect to homepage once action is completed

I have a form to upload files and when the user uploads the file and click on submit button it will trigger the php code and upload the file. and it will show the message "File Uploaded" .My ...
0
votes
1answer
16 views

Why does the $_GET parameter ?search forward the front-page to the archive/blog page

I need the $_GET parameter ?search for my front-page for a third party plugin. Whenever I enter http://wp-site.tld/?search=foo I get redirected to the blog/archive page. If I enter http://wp-site.tld/...
2
votes
1answer
47 views

What is the wordpress way of displaying local external content?

I have a somewhat tricky situation. A company's internal server, running some unknown software (means I have no access whatsoever), exports data to my http server via a custom API. This data gets ...
0
votes
0answers
29 views

Redirect users from admin pages the optimal solution

On two different sites I use two somewhat different solutions. Are they different in terms of security and performance? Which is better? Are there even better ones? Solution 1. /** Redirect users from ...
0
votes
0answers
23 views

Wordpress redirect from URL with BuddyPress

I am using the plugin BuddyPress on my WordPress site and when the user clicks on their profile they are redirected to the URL "/members/USERNAME/profile/home/". However, I do not want this ...
0
votes
0answers
21 views

Using .htaccess for temporary redirects while updating live site

Apparently there are nocache rules that can be added to .htaccess for temporary redirects, such as while updating a live WP site. In researching a difficulty with my browser getting "stuck" ...
0
votes
0answers
12 views

I custom url form post wordpress

I have customized the post url link in wordpress, domain.com/post >> domain.com/cate/post but I want it to change the path to the new link. What do I do? function aly_post_redirects() { if ...
0
votes
1answer
30 views

wp_logout_url redirect not working

logout_url = wp_logout_url( $custom_login_url); echo "<a class='handler-login-link logout' href='{$logout_url}'>".__("Logout","pixel_framework")."</a>&...
0
votes
0answers
20 views

How do i make WordPress return 404 instead of redirecting on misspelled page?

In a vanilla wordpress install, a misspelled page such as https://example.com/weclome leads to a 404 error, which is fine. However, once I set custom permalinks for posts such as https://example.com/...
2
votes
1answer
25 views

Redirect “any page/page/number/” to “any page”

I've read so many similar topics but none of them matches my own request. I'd like to redirect in ht.access any page with pagination to the root-main-original page. example.com/garden/page/2 ...

1
2 3 4 5
36