"HTTP Redirection" – the process by which a request for one URL is automatically replaced by a request for a different, usually related, URL.

learn more… | top users | synonyms (1)

0
votes
0answers
16 views

How to Redirect login User with Mapped Domiain Primary blog Url to Original Sub-site Url

I have the following code which redirects a user of a multi-site to their respective sub-site based on their primary blog url when they log in from the main site. add_filter('login_redirect', ...
0
votes
1answer
20 views

How to get better performance for redirect from domain.tld/35 to domain.tld/full-permalink?

Based on this answer I created a function to change the shortlink from domain.tld?p=435 to domain.tld/435 and redirect domain.tld/435 to domain.tld/full-permalink: function shorter_shortlink() { ...
0
votes
0answers
16 views

Redirect using document.location.href go to undefined > 404 on Wordpress

Here goes my issue: I'm executing the sql and listing the states fine in the page >> mywebsite.loc/fairs/ and I want to select the combo and redirect to >> mywebsite.loc/fairs/?state=CA But wordpress ...
0
votes
1answer
30 views

Creating intro page in wordpress

I am trying to create a very simple "intro" page in wordpress which will display a 5 seconds video introduction and then will redirect to the homepage automatically. I saw that there are many plugins ...
0
votes
2answers
38 views

Debugging a redirect loop affecting only certain pages

I am trying to fix a site which has several redirects that seem to have been added via a plugin called Peters plugin redirect. The plugin has since been deactivated and delated but the redirects loop ...
0
votes
0answers
12 views

Redirect an old to new permalink not working

I have my old site permalink structure like this /%year%%monthnum%%day%-%post_id%.php since 2010 and now I decided to change server and transfer it on a new one and change the permalink on a much ...
0
votes
0answers
8 views

Redirect all users to previous URL before login, except “contributors”

In one hand I redirect all users to previous URL before login. This is the code: function login_redirect( $redirect_to, $request, $user ){ if(isset($_REQUEST['redirect_to'])){ return ...
0
votes
0answers
19 views

Stuck in a Redirect Loop

My Wordpress site is stuck in a redirect loop and I can't now access it. I recently purchased an SSL certificate which my site host says is installed correctly and points to the correct place. I ...
0
votes
1answer
17 views

Redirect after user changes password

I'm doing a custom form where the user can change is password. After submission and if the password is according to the rules I save the new one, overriding the old one, to the database, delete the ...
1
vote
1answer
25 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 ...
0
votes
2answers
32 views

Redirect Custom Post Type after user submits update

I have a function for a custom post type that redirects NEW posts to a specific url after they are submitted by users: function tribe_redirect_after_community_submission( $wp ) { if ( isset( ...
0
votes
1answer
23 views

different CNAME to corresponding subfolders

I have three wordpress websites hosted on Apache server in three different subfolders, like www.mydomain.com/sub1;www.mydomain.com/sub2;www.mydomain.com/sub3 Now, I have three new domain names ...
0
votes
0answers
30 views

Is it OK to redirect to a new address instead of showing 404 Error page? [migrated]

Here is my question, Recently I moved my site from blog.mysite.com to www.mysite.com. Then I added 301 permanent redirection using this code in .htaccess file. RewriteEngine on RewriteCond ...
1
vote
1answer
19 views

Moving test theme to live site without mySQL error - how? [closed]

I have installed a wordpress theme on a hidden test site and made some css/design changes. How would I move this to my live site? Sadly I screwed up some of the PHP/MySQL stuff when trying to copy ...
0
votes
0answers
24 views

Custom Page redirects after user registers

I'm using the "Theme My Login" plugin and basically I needed to make it so if the user fills out the registration form on page "X", they get taken to page "Y". I have done this with the help of a ...
0
votes
0answers
21 views

Redirect Issue: Wordpress database

I have an issue with my wordpress site that seems to relate to the settings in wordpress. However, it seems to go into a redirect loop. I can confirm upon a fresh installation the issue disappears. I ...
0
votes
1answer
16 views

A good hook to check authorization and redirect?

It seems strange to put a redirect in a template page, because so much of the page has already been built by the time you reach a custom page template. I'm wondering what is a good action hook to use ...
0
votes
2answers
25 views

Best Way to Redirect Category to Page and Hide Category

I have a category archive page at: http://mysite.com/news It displays an archive of items from the category 'news-article' I'd like to redirect any requests for ...
0
votes
1answer
29 views

redirect index.html inside folder to wordpress page of same name

i have a wp page called mysite.com/stuff/ i have a subdirectory on my ftp called mysite.com/stuff/index.html with a bunch of files and other subdirectories inside. when i go to ...
0
votes
1answer
20 views

Redirect page to default subpage

On a site that I'm working on I have a particular page that has four subpages, which act like process steps. I want the parent page to always redirect to the first of these as a default, should the ...
0
votes
0answers
21 views

unwanted redirect on saving custom post type / custom post not saving

I've added (or at least attempted to add) a custom post type that has a custom meta box allowing a file to be attached to the post. This function has been spotty at best, allowing some files to be ...
0
votes
1answer
42 views

Wordpress as a Facebook app

I´m setting up a WP based app and due to some limitations on facebook page tabs and mobile phones I´m trying to set up a redirect that directs the pages accourding to device and if its visited through ...
0
votes
1answer
46 views

Allow the access over wp-login.php

I created a maintenace template, and redirected to the folder where it is located via the functions.php file inside the theme folder; this is the code: function maintenance_redirect(){ if( ...
0
votes
1answer
26 views

Redirection error after posting a comment on a custom type post

I have created a custom post type called portfolio so the permalink structure for this type of posts is like this: mydomain.com/portfolio/post-name/ My issue is that after posting a comment on one ...
0
votes
1answer
27 views

All pages lead to home

I've recently moved from linux to windows hosting, and now all of my permalinks just redirect to the homepage. I've selected the correct structure in Settings->Permalinks and have the following in my ...
0
votes
1answer
26 views

Multisite: Redirect Subsite Administrator to Subsite Home Page, Bypassing Dashboard

The subsite administrators of my multisite installation want to go directly to the subsite home page upon login, bypassing the dashboard. Irrespective of the wisdom of this, it's what they clearly ...
0
votes
1answer
25 views

Sub Categories Keep Redirecting to Pages With Same Slugs

What I want to do is have a news category with two sub categories (property-registration and property-revitalization). Going to /news works fine. However going to /news/property-registration or ...
1
vote
0answers
22 views

301 Redirect for Non-Date Based URL's

I'm wanting to redirect posts in WordPress that do not have a date based permalink structure to those that do. For example: domain/aprils-obx-race-recap-gnarly to: ...
0
votes
2answers
27 views

How to create short urls for sharing and downloadable content?

I want to create something similar to "youtube.com/long => youtu.be/short" for my wordpress blog/portfolio/freebie site: "magicshrooms.com/%cat-etc => mgcsr.mz/link-name ". Generally, I want to create ...
0
votes
0answers
23 views

How to load another page file of my custom plugin file

I'm creating my own plugin for medical purpose. in the site front end using shortcode i created a login form. so after logged in the doctor can see list of patients with and edit link to each row. i ...
1
vote
2answers
45 views

Redirect 301 www.my-site.com/page/n to www.my-site.com/ [closed]

How to make redirection on WordPress site with .htaccess to redirect this: http://www.my-site.com/page/n to home page: http://www.my-site.com/ I do not wish to list previous post on site on first ...
0
votes
0answers
29 views

Subpages return 404 server error

I just moved a site to another production environment and I have an issue with accessing subpages. The home page and the /wp-admin section works as expected and there are no path issues with images or ...
0
votes
1answer
22 views

get_bloginfo prints IP instead of url

I just recently moved a site to another production environment and I seem to have missed some setting in the db config as a lot of the built-in functions prints the IP instead of the url. Ideas? Tried ...
0
votes
2answers
33 views

Admin user getting redirected to /wp-admin/user

I recently added a network to my multi-network wordpress install (that is, a single install with multiple subdomain networks, each with multiple subdirectory sites). Although everything appears ...
0
votes
0answers
20 views

Subdomains to pages

Hi I have a website on wordpress which have 2 pages which I meant to convert it to subdomain. Eg: Let my website at be http://www.domain.com there are two pages http://www.domain.com/page1 and ...
0
votes
0answers
31 views

template_redirect causing infinite loop when get_queried_object is called

I have a situation where I am calling get_queried_object() in the 'wp' action hook and it is causing an infinite 301 redirect. I can temporarily fix this by adding: remove_filter( ...
0
votes
2answers
68 views

If User is NOT Logged in and Page ID is not 6 - Redirect to Login

I am trying to redirect users based on the following... If Role = Customer & Page Is NOT ID 6 Then Redirect To Checkout If Not Logged in & Page Is Not ID 6 then redirect to login User role = ...
0
votes
2answers
42 views

https redirect hell (adding www)

I migrated my multisite wordpress website (www.example.com) to a subdomain (dev.example.com) to work on some big changes. Of course, I changed siteurl and home in the DB for all sites. The problem is ...
0
votes
2answers
72 views

.htaccess regex for redirect subdomain to root domain & redirect old permalinks

ok, i have at site a blog.mysite.com, and recently migrated all content to a new wp install at mysite.com. i want to redirect all of the posts from blog.mysite.com to mysite.com and also account for ...
0
votes
1answer
23 views

Which method to use when deleting posts from the front-end

I am trying to enlist all my posts on the front-end along with delete and edit links (using the shortcode API). I am having difficulty with the delete links. To me the most obvious way to handle ...
0
votes
1answer
26 views

How to include parent terms in hierarchical taxonomy URLs?

For all custom taxonomies, the URLs look like: /base/slug/. I need a solution to for my hierarchical taxonomies to have: /base/parentslug/childslug/. Anybody knows how to redirect and or to have the ...
0
votes
2answers
53 views

Conditional Redirect

I'm looking to do a redirect based on browser, but only for a specific page (or 2). I'd like to send the user to an alternative page if the browser is IE7 or less. The alt page will have completely ...
0
votes
0answers
60 views

How do I add a forward slash to end of URL for Fetch as Google?

When trying to use the Fetch as Google tool I keep getting a redirect error. This error is because my URL address is http://www.example.com instead of http://www.example.com/ How do I add the ...
0
votes
1answer
12 views

Make a select where the options are the different multisites

I've been wondering this for a while; If you run a multisite setup on your WordPress installation, are you able to create a select on the main page (e.g. www.example.com), where the options in the ...
0
votes
0answers
9 views

Rewrite rules for subterms in custom taxonomies

I am using a large number of custom taxonomies. My post type is called "location" and there is a parent term "Asia" and a subterm "Thailand". Now I created the taxonomy archive template files ...
0
votes
2answers
52 views

Redirect preview single post link to a page

I have custom post types setup such that the items don't have or need single-post pages. The posts will be displayed via a custom query on a page. My question is when i create a single post (on the ...
0
votes
1answer
31 views

Use blog as base for tags and categories

I have a site: example.com build in wordpress. I set up the posts page as example.com/news. I want my tags and categories to be: example.com/news/tag/mytag example.com/news/category/mycategory ...
0
votes
0answers
30 views

Site goes back to homepage when you dont include the www

I have made multiple pages in my Wordpress site but whenever I go to these pages without the www in the beginning the site always redirects to the homepage. I know if i was getting an error it would ...
0
votes
1answer
127 views

Redirect A URL Pattern In WordPress Using .htaccess

I am new to WordPress and just converted from Blogger to WordPress. Now as you know that Blogger URLs are too different from WordPress URLs so after migrating I started receiving 404 error in Google ...
0
votes
0answers
33 views

Unable to login + Redirect loop on mobile

When I try to login to my wordpress page, I'm stuck in the loginpage without any CSS. Filling in the correct logins doesn't get me logged in. I just get redirected to that same page: ...