Mass .htaccess URL Forwarding

Have you looked at the Redirection plugin? You could make a rewrite rule for something like this: /([^\/]+/([1-9]+)/([^/]+)/? and then have it redirect to http://newsite.com/$1/$3, or something along those lines at least. I think you could do this with .htaccess as well, but I’m not familiar enough with the format for it to give you … Read more

Shared hosting, multiple sites, can’t log in to WP due to .htaccess redirection

@define(‘ADMIN_COOKIE_PATH’, “https://wordpress.stackexchange.com/”); Putting this at the top of wp-config.php allows me to log in. Not sure if this is the proper way to set everything up, but it works… EDIT That only solved half of the problem. Permalinks were then broken. @toscho had the proper suggestion for anyone who may see this and has a … Read more

A question about .htaccess

You can just add the .htaccess to the root of the website however be cautious as WordPress will have added it’s own if you have changed the link slug structure within the WordPress admin. In the htaccess file you should use 301 re-direction’s like so: redirect 301 /oldpage.asp http://www.thesite.com/newpage/ If it is a big site … Read more

Custom url structure – pages under a custom post type

example.com/event/london-2012/speakers/john-doe You need an “event” post type and a “speaker post type. The event post type should be hierarchical and should have a sub-page called “speakers” which should use a custom template that displays all the “speaker” post types assigned to that event (see the Posts 2 Posts plugin). Then you can create other sub-pages … Read more

How to execute WordPress as though it is in the root folder while it is installed in a subdirectory?

WordPress has a good writeup about this at Giving_WordPress_Its_Own_Directory. Many people want WordPress to power their site’s root (e.g. http://example.com) but they don’t want all of the WordPress files cluttering up their root directory. WordPress allows you to install it into a subdirectory, but have your blog exist in the site root. You could also … Read more