Add-on domain works in WordPress but links still lead to subdomain
Add-on domain works in WordPress but links still lead to subdomain
Add-on domain works in WordPress but links still lead to subdomain
It’s still confusing a little bit but definitely not best to resolve this with WordPress. Many hosting providers offer you to set domain redirect right in their control panel and often that’s the easiest to manage and also not require you to have web hosting with them (domain control is enough). If I understand your … Read more
Put this in your .htaccess: Redirect 301 http://oldexample.com/detail/B007OZNZG0.html http://newexample.com/B007OZNZG0.html UPDATE Ok, maybe my answer was a bit short but if you only want to redirect a couple of URL’s that code will work great. The thing is, if there’s no real logic between your old and your new URL’s I think you should do a … Read more
The basic rewrite rules for pretty permalinks in WordPress look like this: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Note the RewriteRule. That part is missing in your file.
incorrect path of plugin dir on network
This is the default. WordPress will add markers before and after its rules and not touch anything else: # BEGIN WordPress # WP rules here … # END WordPress Just make sure to set your rules before the WordPress rules, because WordPress’ rewrite rules are rather greedy (they have to), so later rules will probably … Read more
If your server is configured correctly, a request to a PHP file is forwarded to the PHP interpreter. It does not play a role if it is accessed directly, via a link or by clicking on it in a directory listing. I visited both of your URLs. URL 2 shows an error message – an … Read more
“regular” pages not found after changing permalink
Custom Page Template not working when site moved from subfolder
I’m pretty sure you have wrong “rewrite” parameter in your add_rewrite_rule call. I’m writing it directly in here, so it can be buggy… But it should look something like this: add_rewrite_rule(‘^authors/([^/]*)/([^/]*)/?’,’index.php?page_id=<YOUR AUTHOR PAGE ID>&my_author_name=$matches[1]&my_author_pic=$matches[2]’,’top’); Then you can use add_rewrite_tag (http://codex.wordpress.org/Rewrite_API/add_rewrite_tag) to add your custom query variables (my_author_name and my_author_pic). And in your author page you … Read more