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
2
votes
1answer
602 views

Does WordPress send a 301 header message when you change permalink structures?

I have a super old blog that I upgraded from 2.0.7 to 3.1 by upgrading over multiple versions. One of my biggest concerns was losing all the link juice from my legacy URLs but they were clearly made ...
2
votes
5answers
10k views

Multisite non-www domain redirects to sign-up

I have Multisite enabled and can only view my site with the www. When I try without the www it sends me to the sign-up page and says Registration has been disabled. www.domain.com/portfolio <--...
2
votes
1answer
201 views

htaccess redirect dynamic posts

Probably not the correct fora to ask, but.. Also probably a simple question.. We are changing our site to Wordpress, and need to redirect old posts. Previously structure: http://url.com/art/12345....
2
votes
1answer
584 views

Password Protected Page Not Displaying Content After Entering Password

For reason unbeknownst to me (I'm not the original developer). This custom WordPress site doesn't show the password protected login form..."This content is password protected! To view it please enter ...
2
votes
1answer
1k views

WooCommerce lost password reset flow not working with SendGrid (redirect loop)

Leaving this here for anyone who runs into the same issue because I just spent a few hours to track this down and couldn't Google my way there: The WooCommerce reset password flow is broken. The ...
2
votes
1answer
242 views

RedirectMatch and Redirect interfering with each other

I have the following lines in my .htaccess (there are other lines but these two are next to each other) RedirectMatch 301 ^/datingstories https://example.com/blog/category/relationships/...
2
votes
1answer
340 views

Redirect User to Homepage if no other redirect is specified

Basically I want to write some code that decided wether to redirect a User to the Home page of the website or to the page that the user came from prior to logging in. I have this code which ...
2
votes
1answer
3k views

Can't access admin dashboard with wp-admin without /index.php after it

After I log in, I'm redirected to example.com/wp-admin/, which has a "ERR_TOO_MANY_REDIRECTS" message. If I type in example.com/wp-admin/index.php, everything works just fine. My wp-config.php looks ...
2
votes
3answers
6k views

How do I redirect all 404 errors of a specific post type to another URL?

I have a custom post type containing job listings, that is highly volatile. Jobs are frequently added and removed. Our analytics show that a lot of crawling errors are for detail pages of jobs that ...
2
votes
2answers
372 views

.htaccess - Redirect duplicated post ended in '-number/' to the same url without the -number/

I have many duplicated post and I wanted remove them but Google already indexed them. So the idea is redirect all post with pattern [-number] in the end of the url to the same URL without number www....
2
votes
1answer
146 views

Custom rewrite rule

I need to do some URL Rewriting, but that is all new to me and I've tried a few things but nothing seems to work. For example: I have an URL that looks like this. http://example.com/directorio/?...
2
votes
2answers
5k views

How to setup 301 redirects for multiple query string URLs?

I have multiple URLs that follow the same pattern like this: https://example.com/hashtag?tag=[$string] Is there a way to perform a 301 redirect to the following URL instead? https://example.com/...
2
votes
1answer
1k views

Top level Pages redirecting to homepage!

For some reason after setting the permalink to any other structure apart from default. The top level pages will start redirecting to the home page. I have disabled all the plugins and change theme to ...
2
votes
1answer
69 views

How to hide that a certain non-Wordpress directory exists on the server?

I'm very much a newcomer to Wordpress and to this site, so I apologize if this is easy or addressed elsewhere. I have a WP 4.0 site, using a naked domain http://example.com, with the WP installation ...
2
votes
2answers
7k views

How does Wordpress redirect to WooCommerce shop page? [closed]

I'm creating a plugin for WooCommerce, it needs a parameter in the url of shop page like this http://domain/wp/shop/?param=value. It worked fine until I set the shop page as front page, when I access ...
2
votes
1answer
3k views

Logout and redirect using the WP Menu

I have a navigation hyperlink in my secondary menu, that will allow the user to logout: However, the user is prompted with the following screen for confirmation, when clicking on the hyperlink in ...
2
votes
3answers
222 views

base directories / URL

Is there a way to handle base directories for taxonomies that result in a 404. For example my URLs are: http://skipology.com/category/... http://skipology.com/app/... but the taxonomies / base ...
2
votes
1answer
12k views

All pages showing up as homepage on Wordpress website

Why would this be happening? Every link I click on on my site results in the homepage again. You can check it out here: http://www.whatamidoingonline.com What is going on here? This just started all ...
2
votes
1answer
307 views

404 to 301 - Fixing old links

I have currently updated a site and made many improvements to it. The old site ran off 3 different systems and had wordpress (and the other systems) in the webroot. I have moved wordpress into a ...
2
votes
2answers
2k views

Plugin for conditional redirect

Lets say, I create page1 and page2 in wordpress, in Page1 there is a hyperlink which takes me to page2. How do I ensure that visitor has clicked that hyperlink and have come to page2 and not directly ...
2
votes
1answer
554 views

Redirect one of two domains on one Wordpress installation

I have to domains: mydomain.dk and mydomain.de. Both are showing the same page in danish. I have a plugin that takes care of the languages, but I need to connect the .de domain to the german 'language ...
2
votes
2answers
1k views

Query WP data with the WPDB API from outside WordPress

I'm working on a project with WP, a bit like a plugin, but not quite one. I'm encountering an issue, when trying to include a file that contains some custom SQL functions in a class, in a completely ...
2
votes
4answers
2k views

Can Wordpress redirect to a “similar page” in case of 404 error

This stuff is driving me nuts. The following url does NOT exist and should return a 404: http://www.easyjob.net/resume/ However, if I try to access it, I get a 301 to http://www.easyjob.net/r/cover-...
2
votes
1answer
1k views

Redirect category to first available child post

Is possible to redirect category to first available child post please? Thanks!
2
votes
2answers
274 views

Get the final destination after WP_Http redirects (WordPress)

I'm doing some requests to an API via WordPress, and the API uses SSL connections if they're turned on in the API settings. I'd like to determine whether SSL is turned on or off without having to ask ...
2
votes
3answers
11k views

Wordpress redirection problem after moving to a new server?

I've created a site using wordpress and i moved that from localhost to new server. The steps i've followed is just got backup of old db from localhost and uploaded them to the new server. Changed the ...
2
votes
2answers
1k views

How to let a single post have its own domain name

I am not sure which solution here would work best as a solution but what I am looking for is just a simple way to enter an optional domain through a metabox on the page edit screen and then just ...
2
votes
1answer
75 views

url keeps redirecting to a page

I have theme options pages www.website.com/wp-admin/themes.php?page=avada_options but problem is when ever i go that page it redirect to www.website.com/store-manager/ I checked the rewrite, even ...
2
votes
1answer
34 views

Why specific file directory fails to redirect but its parent folder succeeds?

I activated multisite using subdirectories on my old WordPress site, and I created a new site (say my-example.com/new-site/). I found links such as my-example.com/new-site/wp-content/mu-plugins/css/ ...
2
votes
1answer
103 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?
2
votes
1answer
689 views

How to remove “YEAR/MONTH/” from uploads URL & redirect old URL to the new form?

I have disabled "Organize my uploads into month and year-based folders". The links to my PDF files were of the form: https://www.example.com/wp-content/uploads/2018/03/document.pdf And now they are:...
2
votes
2answers
840 views

How to redirect Old Post URL to new Post and keep Old post Comments?

How to redirect Old Post URL to new Post URL and keep Old post Comments? is it possible. can any one give me plugin to do this.
2
votes
1answer
608 views

What's the _wp_desired_post_slug value for?

I'm trying to debug a 301 redirect that is causing me lots of trouble. I renamed a page from /blog to /old-blog and created a new page with the /blog slug. Now I'm getting 301 redirects from /blog to /...
2
votes
1answer
2k views

302 redirect instead of 301 after switch to HTTPS

Last week I changed my website from HTTP to HTTPS. Despite the 301 redirect rule in .htaccess, all old (HTTP) pages are redirected with a 302 redirect for some reason. I cannot find what this is and ...
2
votes
2answers
5k views

Custom Redirect after registration in WooCommerce

After a user registers using WooCommerce's registration form, I want to redirect them to a custom page, such as my other website, instead of the my-account page. add_action('...
2
votes
1answer
5k views

Wordpress network (multisite) /wp-admin/ redirect loop (ERR_TOO_MANY_REDIRECTS)

I have a Wordpress network where I run +/- 10 sites. Recently, I got a redirect error when accessing the wp-admin page for one of the sites. All sites in the network are working fine, I can also ...
2
votes
4answers
839 views

https multiple redirects

I am in the process of changing my protocol from http to https. I have wordpress installed as a subdirectory (eg: www.example.com/blog) I have the server behind a load balancer, requests to the load ...
2
votes
1answer
1k views

Redirect all pages to homepage but still allow dashboard

I only want users to be able to use the dashboard of my WordPress site. I have a custom login form on the homepage but apart from that I don't want them to be able to access anything else on the ...
2
votes
1answer
220 views

Can I check for maintenance mode before redirecting to subdomain?

I'm currently working on a site that will have several sub-domains that will need a re-direct based on country origin but the server doesn't have the mod_geoip module allowed so I can't use an ....
2
votes
1answer
611 views

Specific URL Rewriting with parameters in wordpress

I'm rewriting a website that was originally in Drupal and has very specific URL's. So, I need to rewrite all the original URL's to the wordpress system + the parameters for my own-written plugins: I ...
2
votes
2answers
18k views

Disabling HTTPS redirection for migration

I migrated a WordPress 4.3 site from Register.com to MediaTemple today and found that the forced SSL is causing issues for the staging URL. In order to try again I have (on the live Register.com site)...
2
votes
2answers
13k views

How to redirect user to a page after form submission

I have three dropdown filters on the front site to select country, territory and region and need to redirect the user to the country/territory/region page depending upon the filter values on click of ...
2
votes
1answer
96 views

expecting 404 but redirecting to post with url subdirectory in post title

I'm seeing something unexpected, although I'm not sure whether it's a feature I can disable or whether it is something introduced by the custom theme I'm using that I need to track down. If I enter a ...
2
votes
1answer
149 views

how to redirect to url.com/wp-admin if url.com/admin is typed in?

How would I create a wordpress function that will redirect a user to myurl.com/wp-admin if they type in myurl.com/admin? I would like to have this as a wordpress function.
2
votes
3answers
4k views

Setting a redirect cookie in wordpress

I've been searching on the net for a solution to my problem all day, but I can't make sense of anything I see, since I know absolutely NOTHING about coding. What I'd like to do: I'd like to set a ...
2
votes
1answer
2k views

How to redirect to action on custom page within admin section

Currently I'm developing(well at least trying to;) plugin which will handle custom gallery of images. I stumbled upon one problem though. I'll try to picture it. I've created custom menu page on ...
2
votes
1answer
194 views

Redirect deleted posts to category archive

I have a website (http://www.ticketyoda.co.uk) and the events listed become outdated after they have been and gone. I have set it up so that posts automatically expire and are moved to Drafts. So now ...
2
votes
1answer
2k views

Too many redirects when using wp super cache [closed]

For a couple of days i use the wp super cache plugin and it works quite well. I also updated to the latest version of wordpress which is currently Wordpress 3.4.1. Whenever i update something in the ...
2
votes
3answers
1k views

Change the Default Pages Menu View in wp-admin

I can't seem to figure out how to change the default view for "Pages" in the admin menu. The initial view is the "Pages" view (/wp-admin/edit.php?post_type=page) How could it change this to ...
2
votes
1answer
3k views

Moving variables from one page to another

How can I link to another WordPress page but move variables to it as well (preferably not through the address bar)? For instance, I have on one page a list of shops in which a user should be able to ...

1
3 4
5
6 7
34