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
10 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 ...
0
votes
0answers
21 views

My blog post is redirecting to my another blog post [closed]

So here's the scenario. I have an existing post with slug mywebsite.com/hosting-review And I have a new post which is mywebsite.com/hosting-builder-review but my VA redirect my hosting-review article ...
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 ...
1
vote
1answer
18 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
15 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
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
18 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 ...
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 ...
1
vote
1answer
28 views

Redirect parent taxonomy to it's child

I am trying to redirect this url/investments/state/city/ to this url/investments/city/ custom post investments taxonomy structure: state 1 city 1 city 2 and so on. Any elegant solution?
0
votes
2answers
27 views

Rewrite Rule working different than expected

We have our blog posts on a custom page with a custom pagination. For example a blog post name is url.de/postname instead of url.de/blog/postname. Therefore we have a page /blog/ which has the ...
1
vote
0answers
16 views

www redirects to another directory in wordpress

I am using Really Simple SSL plugin but I just noticed that whenever I type the www.ozaro.com/mozaro it automatically redirects to ozaro.com not ozaro.com/mozaro So please help
0
votes
0answers
20 views

Redirect users with "." (dot) in their username and replace with "-" (dash) to correct profile

Im having problem with usernames that have '.' (dot) in their username and throwing 404 when try to access their profile page in front end. Can we replace this '.' (dot) with '-' (dash) because ...
2
votes
1answer
23 views

How to create a 301 redirect that doesn't apply to subsites

Scenario: I'm trying to set a 301 redirect so that https://foo.org/events is redirected to a non-WordPress site https://bar.org/events. On my .htaccess file, I set the following: Redirect 301 /events ...
0
votes
0answers
25 views

Open wordpress page in directory the way index.html would open

I have a directory /mydir. If I put an index.html in there, it will open when someone browses to example.com/mydir, and their browser shows only the path, not index.html. How can I get the same ...
1
vote
1answer
14 views

Why do my categories redirect?

When I create a new category I can't open it on my website and instead it redirects to another one called 'Macedonia' E.g. I made a new category called food but when I open the link http://...
1
vote
0answers
12 views

How can I redirect a URL to an anchor link while maintaining the URL?

I am building a one-page website which has multiple sections which I have implemented using a custom theme to display all my pages in one single homepage. I would like the user to be able to navigate ...
2
votes
1answer
10 views

Menu links only using http after enabling https, unable to redirect http links

I have a WordPress website on a Bluehost shared hosting server and since I have multiple websites in my space, I have this particular folder in its own folder under public_html. This means that I have ...
1
vote
0answers
14 views

How do I display only the parent page in the url

My site is going to serve content that I want to keep hidden. It is set up like the example below. site.com/parentPage1/ChildPage1 site.com/parentPage1/ChildPage2 site.com/parentPage1/ChildPageN site....
1
vote
3answers
112 views

Wordpress (behind HAProxy and Jetty), not multisite, in sub folder - and /en/wp-admin/ keeps redirecting to /wp-admin/

I am using an unusual setup to host 3 Wordpress installations on CentOS 8 Linux. In front I have HAProxy (to offload TLS), then I have Jetty configured for FastCGI and php-fpm and finally Wordpress. I ...
0
votes
0answers
10 views

My direct link is redirecting somewhere completely different

I'm trying to directly link to a category. I have 3 images and I'm manually adding a link to each category. https://jjairsystems.co.uk/about-us/vacancies/sales/ This works well. But the two other ...
0
votes
1answer
42 views

wp_login_form() redirect same page

Im trying to redirect same page using wp_login_form(). this is my code function loginform() { if ( is_user_logged_in()){ echo '<p> <a href="'.esc_url(home_url('/my-dashboard/')).'" ...
1
vote
0answers
16 views

Wordpress subfolder error with Nginx

I installed a wordpress site(a) in root folder. davelee.com I installed another wordpress site(b) in subfolder /zh. davelee.com/zh The result is davelee.com (point to wordpress site(a) correct) ...
0
votes
0answers
21 views

Unable to redirect on correct page (if user is not logged in)

I am using paid membership pro plugin to manage the users and their subscription at website, I am facing this issue, I have News page (setup as Posts page) and some categories of News (posts ...
0
votes
3answers
40 views

Redirect user from backend to frontend

I want to create a site, where a normal user only is able to access the frontend. So there is no admin bar and everytime, they try to visit the admin area, they are just redirected to the frontpage. I ...
1
vote
1answer
36 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
36 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
47 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
14 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
47 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
1answer
44 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
15 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
44 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
20 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
16 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
33 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
56 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
30 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
32 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
30 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
33 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
25 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
2 3 4 5
36