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
3
votes
2answers
22 views

Wordpress site redirects to different wordpress domain on the same server after reuploading db backup

5 WordPress sites (that is all of them) on our server (Apache, Ubuntu) were infected by some malicious code injecting javascript. I have deleted all the wp databases that were full of the injections ...
0
votes
0answers
14 views

Redirect Visitor based on country or IP address [closed]

I'm currently creating a multi-region site in WordPress, and I want my visitors can redirect automatically to a specific region site based on their country and IP address when they access my site for ...
0
votes
0answers
37 views

Wordpress /wp-admin redirect to wrong port in docker

While installing an existing Wordpress installation in a docker container, I've been unable to access the wp-admin pages. The site and pages load perfectly but when browsing to https://example.com/wp-...
0
votes
0answers
23 views

Any way that guest users see the site as registered users?

My theme does a redirect when author profiles are given like this in author.php: if ( ! is_user_logged_in() ) { wp_safe_redirect( home_url() ); exit; } Is there any way for wordpress to ...
0
votes
1answer
25 views

How to avoid redirect 302 in wordpress to the author pages?

In my theme when I try to access an author's page when I'm offline, it does a 302 redirect to the home page, I was looking at the theme files and in author.php I see the following code that I think ...
0
votes
1answer
18 views

How to delete a post and keep its slug to refer to another post

I've 2 almost identical posts: https://webscraping.pro/reliable-open-proxies-for-business-directories-scrape/ https://webscraping.pro/reliable-rotating-proxies-for-business-directories-scrape/ I ...
1
vote
1answer
18 views

Need Help Correct Regular Expression Redirect Code

I have custom permalinks with this code /%year%/%monthnum%/%postname%.html and now switching to another custom permalinks %postname%.html so obviously all my content is now 404 not found, in yoast ...
0
votes
0answers
5 views

Redirection to `edit.php` after saving in the backend

I've been battling an issue with one site I manage and haven't been able to determine where redirection is happening. I've seen other posts online about this issue, but the suggestions don't seem to ...
0
votes
0answers
28 views

Need to redirect from Apache2 Ubuntu Default Page to home page in wordpress

I have a subdomain like https://faq.example.com/faq this page works fine. changed URL like main domain https://example.com/faq this also works fine. But when I go to this page https://faq.example.com ...
1
vote
1answer
51 views

Server (WordPress) redirects files that are not supposed to (using htaccess)

I use .htaccess to redirect some addresses or avoid some addresses to be redirected. Basically, I have all things redirected to another domain except for certain addresses that I specified. So example....
0
votes
1answer
33 views

Unexpected (virus) redirect started to happen

After the site jopran-kaffee.de has been up and running for a few months, suddenly an unexpected behaviour started to occur. During the first visit the home page notifies about using cookies, and once ...
1
vote
1answer
68 views

Wildcard forward all posts and pages with few exceptions

I want to move my domain from example.com to example.dev and also set a wildcard forward. I use WordPress for blogging, now I want all posts and pages to be moved to the new address but I want some ...
0
votes
0answers
6 views

Permanent Redirect for custom post type

I have changed the slug for a custom post type from nightlife to socialize so all of my custom posts have moved, for example from: https://www.domain.com/nightlife/my-same-custom-title1/ to https://...
0
votes
0answers
4 views

I dont know why redirect from category to home page. please help me

below url is my website post breadcrumb. https://www.must1st.com/category/seo-insight/ but when I click the breadcrumb, redirect to home page url. how can I broken this redirection?
0
votes
0answers
14 views

How does WordPress format the url on a 301 when a trailing slash is missing?

I have a reverse proxy in front of WP that maps some requests on the root example.com/page1/ over to the wp install wp.example.com/page1/. This works fine until the url is missing the trailing slash. ...
0
votes
3answers
69 views

How to Login a User inside a Plugin and Redirect to page?

In my plugin I try to login a user and redirect them to a specific page, but when I redirect the user, they are not logged in :-/ I have tried multiple variations of code that looks like this: $...
0
votes
1answer
14 views

Redirect Homepage to another page when user login

I have a wordpress that users can register and become a member, and how do I get my homepage https://sample.com redirected to the settings page https://sample.com/setting for example. so when the user ...
0
votes
0answers
9 views

Losing get parameters when redirected due to old url

I have a WordPress site which people link to with some get parameters, basically like so: https://www.example.com/2020/09/01/my-slug?myParam1=something&myparam2=somethingElse Now I noticed that if ...
0
votes
0answers
15 views

How to change Route respond To A specific Path?

To increase site loading time and decrease the pressure on my website I have decided to host files(js,css,images) in other hosting, like google storage or amazon aws, problem is that I already ...
0
votes
0answers
14 views

Block direct access to thank you pages

I have parent pages which are downloadable resources. On these pages, people will fill in a form and then be redirected to a thank you page. The thank you pages are child pages. I would like to block ...
0
votes
0answers
10 views

Redirect user after profile update with a message

I have been working on a website based on woocommerce and have removed the default dashboard on the my account page. But when users update their email id or change their password, it still goes to the ...
0
votes
0answers
15 views

Login redirect_to url is pointing to a url with the port

I have recently installed Wordpress when I login the wp-admin is opening a url with port. Upon inspection of the redirect_to url it is the correct url for example: "www.website.com/blog/" ...
0
votes
1answer
24 views

I want to resolve Redirect Chain [closed]

Anyone who can guide me in this matter, I want to resolve the redirect chain? http://www.example.com redirect to https://www.example.com and then redirect to https://example.com. I want to redirect ...
2
votes
2answers
37 views

Hacked website redirect, only on desktop, help with restoring it [closed]

This is my first post, I tried searching for similar problems, didn't find any that would fit my situation. Anyway. Recently my cousins website got hacked, I decided to take a look and try to fix it ...
1
vote
2answers
95 views

Deny access to a path (give 403 or 404 response)

I know this should be easy. BBpress creates user profiles at /forums/users/. I'd like to make them unavailable to anyone, and not be indexed by Google. I've tried the following (in .htaccess) and ...
0
votes
1answer
24 views

I am receiving a pluggable.php warning sign on my only http:// page

I just recently shared a link to my site using he http to my site: http://thechronicalist.com but instead of redirecting, i just displays this: Warning: Cannot modify header information - headers ...
0
votes
2answers
45 views

How To Load an HTML File As A WordPress Page (With No 301/No Redirect)

Here's what I'm trying to do: Page URL: https://example.com/the-page/ What it should load: https://example.com/content/oct2020/index.html When visitors go to the permalink /the-page/, I'd like that ...
0
votes
0answers
24 views

What is the Best Practice for Migrating to New Website Without Full Access to Old Site/Domain

This is my situation: "Site A:" A few years ago I made this site via my university's WordPress service. I do not own the domain (it's at a domain like MySite.web.university.edu) I do not ...
1
vote
0answers
15 views

Redirect user to a form until they have filled it out [closed]

I would like new users to be redirected to a page with a form until they have filled out the form and submitted it, so that their profile information is complete. I guess this would be considered a ...
0
votes
0answers
24 views

how to redirect main domain to subfolder multisite main subsite without plugin

Lol sorry for the title. I've taken 3 sites, 1 of which was the primary site (primarySite.com), two others were addon sites, and migrated them to a multisite network located in public_html/multisite/. ...
0
votes
0answers
19 views

ErrorDocument 410 gives me back a 302 header

I've deleted several pages and tags from my site, and bases on my SEO recommendations I've redirected them to 410. I've done that in my .htaccess file this way: RewriteRule ^tag/lorem/?$ - [G] ...
0
votes
0answers
11 views

Rewrite rule for changing permalinks. Post name to permalink with Category

SCENARIO A I have an wordpress site that has existing posts. Permalink structure is currently configured to https://sitename.com/%postname%/ I need to change the Permalink structure to https://...
0
votes
0answers
23 views

Too many redirects on wp-login.php and wp-admin 404 not found

I am having issues with my wordpress website. I can't login in at all. When I try to goto wp-admin I get a 404 page not found error and it redirects to wp-login.php (wp-login.php?redirect_to=https%3A%...
0
votes
0answers
10 views

Whenever I click Edit option of the post it redirects to webpage

Whenever I click Edit option of the post it redirects to webpage? I cant edit and update post in dashboard
0
votes
1answer
6 views

Redirect to a page while maintaining search query parameters without causing an infinite loop

We are making use of a plugin called Product Filter by XforWoocommerce. It has a feature that limits the available product filter options based on what products are visible, however, it does not work ...
0
votes
0answers
14 views

Create a user page from parent page template

I'm trying to create a user profile page from a parent page profilo.php. I want that when the url is mydomain.com/profilo/username, it shows the user page with the page "profilo" as template....
0
votes
0answers
11 views

How to get rid of extra confusing subdomain redirection? [duplicate]

I've finished building my site just recently and I notice that when I open anything the url adds a nasty top subdomain to the top like in this example: https://q-link.site/product/electric-longboard-...
0
votes
1answer
6 views

Redirecting specific sites to HTTP in WordPress Multisite

What I need to do is redirect only some of the sites in my multisite installation to use HTTP instead of HTTPS. Currently my setup has been so that every site redirects to HTTPS but I can't seem to ...
0
votes
0answers
19 views

How to redirect if 404 error in wordpress then redirect 404.php url

i need to redirect my wordpress blog url to 404.php (file) If some type wrong URL like example.com/blog/fgsdgfdg then I need to be redirect URL to example.com/blog/404.php Below code not working ...
0
votes
0answers
30 views

Stop home page redirect to subfolder

I have a confusing issue! my home page redirect to subfolder! other pages are ok. just home page makes me confused. fidanfilm.ir .htacces on root is RewriteEngine On RewriteCond %{HTTPS} off ...
0
votes
0answers
8 views

How do redirect custom url to wordpress author page

I am trying to create a custom url and then redirect to the /author/username. Example: custom url :/{author's name} redirect to :/author/{author's name} The custom url is what the user will see as ...
0
votes
1answer
19 views

How to prevent WordPress from redirecting single page to prefixed category archive with same name?

I have been trying to solve this problem for hours. I would like to have a page with a simple slug (/blog) and a category term with the same name (/category/blog) exist on my site together at the same ...
0
votes
0answers
25 views

Remove access to Dashboard index.php only

I am looking to redirect users of a certain role from the dashboard index (/wp-admin/index.php) to a different dashboard page (/wp-admin/admin.php?page=yith_vendor_settings) There are plugins and code ...
0
votes
1answer
33 views

Redirect away from page if user is not admin

I have a Wordpress page that should only be visible to the admin. Any other kind of user role, or logged-out visitors, should be redirected away to the home page if they ever try to visit that page. ...
4
votes
2answers
60 views

How to change default page slug?

I have a CPT called jobs and a page named Job Apply. I am trying to achieve something like below url: http://example.com/job-slug/apply Where, job-slug can be any job. i.e Programmer, Developer etc.. ...
0
votes
1answer
50 views

How can I redirect users on the new 404 page without plugin?

I have a 404 page in my theme but I am not using that page. I have created a new 404 page in WordPress using wpbakery page builder. I need to know how can I redirect users on the new 404 page without ...
0
votes
1answer
19 views

Redirect Function Prevents Images from Showing in Front-end Media Uploader

I have a simple redirect function in a custom plugin to prevent users from accessing WP Admin area in a multi-site installation. The plugin enables users manage contents and their profile at the front-...
0
votes
1answer
45 views

How to fix URL with pageid example /?p= too many redirection error

I have recently updated my WordPress to 5.5 and I encountered "too many redirection error" when I use URL with page id /?p=1234 (previously it was working before the update). It keeps ...
0
votes
1answer
52 views

Redirect old Posts URL to new URL

This may have a simple answer I'm not aware of, but I'm not familiar with redirects on Wordpress. Here's my question: I had my default Posts routed to mysite.com/post-name. I want to now route the ...
0
votes
0answers
18 views

How do I Fix a Redirect Chain

I'm wondering how to minimize redirects and eliminate the chain from content that's being served both from https. 4 chains in total. All autooptimize cache related.

1
2 3 4 5
35