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
1
vote
1answer
270 views

Redirect /%year%/%monthnum%/%day%/%postname% [closed]

Need to redirect to new structure /%year%/%monthnum%/%day%/%category%/%postname% Saw code that helped before but can't seem to find it. Updated theme and lost the code that went into functions.php. ...
0
votes
1answer
27 views

Expired event redirect to parent category

I build a website for a client of mine, that is going to continuously host events for his area. One of the requirements he has is to expire and remove from the database the events already completed. ...
0
votes
0answers
22 views

How do I set another domain for WP automatic redirects that is not the default domain?

I just migrated my blog from subdomain to subfolder. Then, I realized some old permalink changes on my blog posts are not redirecting correctly. The thing is, when in WP admin, my domain looks ...
0
votes
0answers
28 views

cannot get user login

I'm trying to redirect logged in user to a specific url like this http://www.example.com/author/<username>/?screen=new I have tried using the following code, everything is fine but it does not ...
0
votes
1answer
280 views

Redirect non existing page to frontpage

When a user type inn www.mypage.com/x (which does not exist) the result show an empty body with the header and the footer intact. Most redirect plugins let me redirect one specific URL to another ...
0
votes
1answer
28 views

Having a different landing page for returning users

I have a Wordpress promotional website for our web application and we have around 400 people every day. We have google analytics and Hotjar on our website to gather data on our users, and we can see ...
0
votes
0answers
42 views

301 Redirect in Wordpress not working in htaccess

I've tried multiple blocks of code and none of them work, i.e.: RewriteEngine on Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] and RewriteCond %{...
0
votes
0answers
90 views

Problem to redirect custom page using htaccess

I could not create dynamic post through URL by .htaccess, Page or Post redirect automatically 404 page. I have tried Redirection Plugin, but i could not successfully redirect. Please try to give ...
1
vote
3answers
644 views

Prevent /wp-admin/ from redirecting to homepage?

I have copied a wordpress instance from production to my local. After getting the public side of the site up - public homepage, pages, and blog posts -, I cannot access /wp-admin/ because that url ...
0
votes
1answer
50 views

How to create multiple Rewrite-Rule for various site in single htaccess?

I am using a single database for two different sites. One is sitejury.com and the other is cdn1.sitejury.com. I'm trying to serve my files using the subdomain. Previously I used simple https Rewrite ...
0
votes
0answers
50 views

VirtualHost redirects, Bitnami WP Multisite, AWS EC2, Ubuntu 16.04, Apache 2.4.39

Bitnami WordPress Multisite on AWS EC2 instance, Ubuntu 16.04, Apache 2.4.39 Want to use the Redirect directive inside VirtualHost sections in /opt/bitnami/apache2/conf/extra/httpd-vhosts.conf to ...
0
votes
0answers
139 views

Set redirect_to in login based on a window.location.hash from url with a # in it

I have a site that I must redirect a logged in user to a page with a # in the url. Anytime this happens the only way to grab anything after the # is using JavaScript. I know I can grab what I want ...
0
votes
0answers
17 views

stop redirection on /wp-login

I've installed a modified version of Wordpress with "Duplicator" There is a problem loading the page I think it's in the redirection How can I stop it? http://mysite/wp-login.php?redirect_to=http%3A%...
0
votes
0answers
40 views

Redirect Permalink of Child Category to Parent Category [duplicate]

I recently changed my permalink structure to /%category/%postname/ and its okay, My site post permalink is now https://example.com/categoryname/postname/ Now the issue is, I am having child category,...
0
votes
0answers
67 views

Redirect Child Category to Parent Category Post Permalink

I changed my permalink structure to /%category/%postname/ and its okay, My site post permalink is now https://example.com/categoryname/postname/ Now the issue is, I am having child category, It ...
0
votes
0answers
17 views

Redirection issue

I run intro problems with my redirection. I got two domains casparpreservers.eu and caspar-labs.com. My problem is: Casparpreservers.eu should redirect all former posts so caspar-labs.com. E.g. ...
0
votes
0answers
43 views

get original request_url (before redirect)

I have a wordpress page and want to add basic auth to the page, except for the wordpress rest api! The main problem seems to be the redirect that happens in the standard .htaccess of wordpress. ...
0
votes
0answers
25 views

URL redirect regular expressions redirecting all after first viriable

I would very much like to redirect https://www.store.nl/?prodcategory=literal%20category%20name&productid=12345 to https://www.store.nl/literal-category-name/ I'm trying to add the redirect in ...
0
votes
1answer
76 views

How do I do a redirect to WordPress permalink with post id via htaccess?

Years ago I saw Jeff Starr of Perishable Press set up shortlinks for a book of his where URLs such as example.com/u/123 redirected to example.com?p=123. I thought that was a handy way to set up no-...
0
votes
1answer
17 views

Category pages redirecting to tab on Posts page grid

I have a Posts page (https://www.obsidianurbexphotography.com/locations/) which has a tab/button for each Category. I would like my Category pages to open this tab instead of loading the default ...
0
votes
0answers
39 views

How to hide subfolder of static pages in Wordpress using htaccess

I need help please because I cannot find a solution for my problem. I need to hide a subfolder in the url of my wordpress site. I created a subfolder where I uploaded some static pages in php ...
1
vote
2answers
370 views

Turn off redirect to canonical domain (or host website on any hostname)

I want to have various development (say dev.example.com) and staging environments of a WordPress multisite (example.com). For this it would be great if WordPress wouldn't redirect to what it considers ...
0
votes
2answers
74 views

Wordpress installed on a virtual machine and behind a reverse proxy is redirecting to the VM's IP address

I have set up wordpress about as well as I can. I have the site url and home configs changed appropriately, and https redirecting is working fine. The only thing that doesn't is links like https://...
0
votes
2answers
353 views

Is this a correct usage of ob_start() in my WordPress project?

I have extended WooCommerce to create a custom endpoint. This endpoint, points to a template that has a form to save user meta data. When the form is submitted I want it to redirect to another URL. ...
2
votes
3answers
354 views

Exclude a path from WordPress using .htaccess redirects (Apache)

I'd like to exclude a path that matches a rule from booting WordPress. The normal way I'd approach this is using the last flag [L] in a rule before all the others. To keep things simple in this ...
1
vote
1answer
40 views

Any action in wordpress redirects me to home page

After transferring my website from localhost on my host server and changing the theme to a newer one. Performing any action including saving settings, installing plugin, saving plugins settings ...
0
votes
1answer
23 views

Why is my site still showing insecure icon even if I have SSL certificate?

I have a Valid SSL certificate. My home page, About page, and Hire Page are insecure. I have found out my images on those pages are requesting and accessing an image from HTTP. I used Plugin, every ...
0
votes
0answers
36 views

My website frequently redirect to a different advertisement URL

Can you guys help me to figure out why it's happening? Its mainly happen from my search engine result. From Google search when I click on my website it will redirect to a scam website. Note: now its ...
0
votes
2answers
170 views

I want to redirect the url to the previous page

I have created a table in which i have delete link something like http://localhost/wptheme/wp-admin/admin.php?page=batch-op-settings&action=batch-delete&post_id=5 and i have added a code to ...
0
votes
2answers
15 views

Why https://www. SUBdomain is redirected by WP to https://MAINdomain

Hi there could somedoby explain please why https://www. SUBdomain does not redirect to https://non-www.sudomain I am running nginx and seems like set up all the redirects but the one above seem to be ...
0
votes
1answer
46 views

Wordpress: Redirect Main Site to Subsite in Multisite Where user is NOT logged in

I have found this solution ( https://wordpress.stackexchange.com/questions/66115/redirect-main-site-to-subsite-in-multisite-wordpress ) regarding redirecting a mainsite to a subsite in wordpress. But!...
0
votes
1answer
60 views

Wordpress CSS/Theme gone after SSL got activated

I can just see the skeleton of my site. I cleared the cache on cloudflare, what else can i do? Even domain.com/wp-admin login screen is messed up, which means it probably has something to do with ...
0
votes
1answer
23 views

301 Redirect Link to Media

I sent an email to some folks today with a link to a word document hosted on wordpress. The URL in the email is something like: www.mycompany.com/media/2018/06/somedocument.docx Unfortunately, ...
0
votes
0answers
27 views

Loading /wp-content/uploads/site as /site/

I love websites so much that I want to put a website into another website. I have a static site under /wp-content/uploads/site. It has a lot of pages and I can access it without an issue in https://[...
0
votes
1answer
21 views

Redirect wordpress website's subpage to root [closed]

I have a website, let's call it billyweb.com, built with Wordpress. On the other side, the billyweb.com has a subpage called billyweb.com/blog. I want to move all the contents inside billyweb.com/blog ...
0
votes
1answer
175 views

How to redirect user to Referrer Page using wp_signon in Custom Login Page in WordPress

I have created a Custom Login Page using wp_signon in WordPress. The code is working fine. The only issue is I am not getting as to how I redirect user back to the Referrer Page after login. ...
1
vote
1answer
66 views

How do I redirect all 404 error url to Subcategory url

I have a b blog of over 200k+ post and I moved all post from a specific category to a subcategory, I have also deleted the post from the my main site, so all the post of that category have been moved ...
0
votes
1answer
824 views

Domain redirect to wp-admin/setup-config.php file

I have a problem with my WordPress site, it is working well until today. The problem is when I type my domain name it is redirecting to wp-admin/setup-config.php file. I have no idea why this is ...
1
vote
2answers
220 views

How to redirect from various ?page_id= to home page?

I have a website where I need to 301 redirect all old pages that are incoming from old URLs like /?page_id=261, /?page_id=204, /?page_id=2677 and so on to the main home page. What would be a proper ...
0
votes
2answers
80 views

Wordpress Redirect post to outside website based on useragent

I have wordpress site and need advise regarding redirect htaccess based on useragent: Sample: my old url: myolddomain/old-post/ redirect to: mynewdomain/new-post/ based on useragent thanks
1
vote
2answers
42 views

WordPress Redirecting HTTPS Requests to HTTP

I'm having an issue with my WordPress based site. As it stands, we have an SSL certificate installed server-side that has been validated. On the WordPress side, everything appears to be correctly ...
0
votes
1answer
56 views

how can i find malware code and remove from wordpress site to stop it redirecting to hackers click view pages

how can I find malware code and remove from a WordPress site to stop it redirecting to hackers click view pages
0
votes
2answers
154 views

Page editing in backend redirecting to 404 page not found with url /post.php

Today I migrated a WordPress site from another server to a new server, there is a new domain and new host, so I follow the manual way to upload my site. That was, I downloaded files and upload it on ...
1
vote
1answer
48 views

Redirections and rewrites to subdomain

I am currently working on a new WordPress website, to partially replace a non-WP website that includes a webshop. Now, the plan is to migrate the webshop and all matching pages (shopping card, order ...
1
vote
0answers
59 views

How to fix 'Wordpress redirection loop problem in wp-login.php page'?

When I am going to the wp-login.php page of my wordpress website, the login form is not showing. Instead I can see its redirecting back infinitely to the same page. I am confused why suddenly this is ...
1
vote
3answers
503 views

Wordpress Theme Development: How to redirect templates the right way?

I'm developing a theme for WordPress. I have a doubt about templates redirect. For example, I have a theme that have the front-page.php template and I don't use the index.php template. What I should ...
0
votes
1answer
86 views

How to 301 redirect from url with post id to permalink with post name (slug)?

my posts have urls of two different types: one with post id and other with post slug: /post/789 /post/my-post-slug i'm doing this using: add_rewrite_rule( 'post/(\d+)/?', 'index.php?p=$...
0
votes
2answers
557 views

My site doesn't redirect from HTTP to HTTPS

I have SSL certificate activated on my website. I did change the settings: setting > general and edit wp-config.php to force HTTPS: define( 'FORCE_SSL_ADMIN', true ); The problem is, the ...
0
votes
1answer
211 views

How to allow download url redirection only if user logged in Wordpress site?

I'm trying to allow url-redirection (from /dl urls) only if user is logged-in to wordpress site. Otherwise don't allow. However it went "page not found" when i click these urls with or without logging ...
0
votes
1answer
376 views

How to auto login after registration? [duplicate]

I create an user using $user_id = wp_create_user($username, $password, $email); After creating the user I want them to auto login and so according to ravi patel, I have added the following code in ...

1
3 4
5
6 7
34