“regular” pages not found after changing permalink
“regular” pages not found after changing permalink
“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
Stop wordpress to redirecting home page if no page found
.htaccess not working in WordPress
<IfModule mod_rewrite.c> RewriteEngine on #If whe’re using www. RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] #prefixes to !^ ignore RewriteCond %{REQUEST_URI} !^/host RewriteCond %{REQUEST_URI} !^/aprobar RewriteCond %{REQUEST_URI} !^/wp-admin RewriteCond %{REQUEST_URI} !^/wp-login.php #See at the end about index.php RewriteCond %{REQUEST_URI} !^/index.php RewriteRule ^(.*)$ http://%1/$1 [R=301,L] </IfModule> When you’re using permalinks, WordPress do something like this to get the content: … Read more
change this line in your index.php on root from require(‘./wordpress/wp-blog-header.php’); to require(‘./wdps/wp-blog-header.php’); then make an .htaccess file on root like this: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wdps/ RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wdps/index.php [L] </IfModule> # END WordPress
I decided to move the child installation to the main site’s web root, and rename its subdirectory to intranet. Once I had done this, all I had left to do was place this line of code after the main site’s rules: RewriteRule ^intranet/ – [L] The – rewrites the URI to itself – thus overriding … Read more
customize urls displayed by previous_post_link and next_post_link
Turns out my trouble was caused by a stray server-side include that was returning a 404, which WordPress tried to intercept. This is not the WordPress problem you are looking for.