All links redirecting to homepage

I figured it out. I had the default theme installed with these plugins, Thrive Architect and Ultimate Members. I raised a support ticket with Thrive Architect forums to which I received a reply the reply that when Ultimate Member plugin was disabled everything was working fine. I further dig into that and came across a … Read more

Redirect only PDFs in different folders?

If all of the .pdf pages need to redirect to the same page, and provided you don’t have any .pdf pages that don’t need redirecting, you might be able to use something like the following in your .htaccess file… RewriteCond %{REQUEST_URI} .*\.(pdf) RewriteRule ^(.*)/ https://new.example.com/new_page/ [R]

Redirect to custom admin menu after plugin activation

In this case, “nht_” is a prefix to avoid naming collisions with similar functions. This is a “best practice” to observe when doing your own development. So if you’re developing something that would be distributed publicly, you should be the habit of applying your own prefix to your function names; and since this particular code … Read more

Redirect after plugin activation

Use WP_DEBUG to Get a List of Errors To get a readout of what PHP errors might be causing your site’s problems, you’ll need to turn on the WP_DEBUG tool. To do this, open up your wp-config.php file and add the following line of code (if it is not already present): define( ‘WP_DEBUG’, true ); … Read more