WordPress within specific sub-directories, implicitly not root

I have an existing application running at my website root now. Using .htaccess, would it be possible for a single WordPress installation to manage sub-directories? For example, /press/, /careers/, /blog/ would be served by WordPress. The problem is I don’t want WordPress to get served on the root. I suspect something tricky with permalinks and … Read more

Permalink /%category%/%postname%/ returns 404 on OSX

I’m on OSX 10.8.4 with a pretty standard installation of WordPress 3.6.1 under the local OSX Apache/MySQL. If my permalinks are set to /%category%/%postname%/ I get a 404… This is working on the live server which I think is running CentOS, so it’s definitely something wrong on my machine. I don’t have any custom post … Read more

How to 301 all posts

I am currently using domain/%postname%/ but I am looking to change it to domain/folder/%postname%/ – I unsure how to 301 all posts. If I was to use something like Redirect 301 /$ domain/folder/$ I am thinking this would probably also redirect all pages, archives etc to the same structure, which I do not want. How … Read more

Removing leading zeros from custom permalink structure

My WordPress website currently uses this custom permalink structure: %author%/%year%/%monthnum%/%day%/%postname% In this case, %monthnum% instantiates numbered dates with a leading zero — e.g., “09” for September. So, a sample URL might look like this: mywebsite.com/username/2012/09/12/post-name Is there a function I can add or .htaccess change that I can make which will remove the leading zeros … Read more

How is WordPress manipulating the posts like there are folders?

As you know, a WordPress post can usually be seen going to a link similar to this: myblog.com/2014/03/27/sample-post/ There is no folder named 2014, 03, 27 or sample-post in the blog. Until now, I used something like this: page.php?post_id=55. How is WordPress and other sites (I think StackExchange sites do this too) doing this? 1 … Read more

Custom Post Type and Custom Taxonomy Permalinks

I’m currently working with a client’s WordPress blog that has a permalink structure set in the admin settings as “/speaks/%postname%/”. This is so that all actual blog posts (post_type=>posts) have the word “speaks” before them. However, I have created a new custom post type and a new custom taxonomy for a new section on the … Read more

How can I make my .htaccess file writeable by wp-admin?

My ISP changed the hosting for my WordPress blog and everything stopped working. There was a DNS issue but they resolved that, but then every page apart from the home page returned a 404 error. When I checked the permalinks page (/wp-admin/options-permalinks.php) in wp-admin I saw the following: If your .htaccess file were writable, we … Read more

Permalink settings not saving

I just started a new WP installation and my permalink settings are not saving. I have chosen the ‘Month and name’ option (/2014/06/sample-post/), but when I create a new post, the text shows up as /2014/06/sample-post/, but the link goes to the default ?p=x. When I go to /2014/06/sample-post/ with the correct information for the … Read more

404 Page Not Found for Only One Post

I have 40+ posts on my blog. Only one of them is going to a 404 page when I click the title (visit the permalink). To see it in action: http://thegrovestead.com/tag/strawberries/ Look for the post “Cure for the common slug” and click the title (permalink: http://thegrovestead.com/cure-for-the-common-slug/) You will get the 404 error. Note that all … Read more