Tag Info

Hot answers tagged

1

Here's a simpler take. Only turn off the redirecting if none of the query_vars are present. In this way we get to keep the functionality, without the need to duplicate the logic already at redirect_canonical. add_filter('redirect_canonical', 'no_redirect_on_404', 10, 2); function no_redirect_on_404($redirect_url, $requested_url){ $id = ...


1

Depending on what server setup you have (operating system, http server & control panel - if you have one), the main way to go would be to have separate DNS zones for each domain (with an A record for the domain name, then MX records, NS if you want the nameservers to be linked to that specific domain, reverse lookup and other stuff), then have a virtual ...


1

I'm working on a plugin that handle things like that. While it's in development I want to share some code derived form my plugin that can help you, I hope. If you look at your sources urls, they are easily to be recognize: you have 2 cases in which you need to redirect: the url contain 2 pieces and both are numeric, first of 4 digits, second is between 1 ...


1

Without being an htaccess expert, I'd say you're missing a RewriteCond - A condition. Check if it's on port 80. Try this: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^/?(.*) https://%{SERVER_NAME}/wordpress/directory/$1 [R,L] UPDATE: After seeing your updated question, with the full .htaccess - I'd do this: <IfModule ...



Only top voted, non community-wiki answers of a minimum length are eligible