I have Wordpress (v3.2.1) set up at domain.org.nz/wordpress with a number of pages set up as domain.org.nz/wordpress/services/example. I want to set up a subdomain, example.domain.org.nz to point to domain.org.nz/wordpress/services/example. When the subdomain is entered into the address bar, it (preferably) should stay as the subdomain (not a redirect). If there are any child pages of /example, the URL needs to appear as example.domain.org.nz/child. I have access to all Wordpress files, .htaccess, DNS settings etc but as I'm on a shared server, I don't have access to the httpd.conf
I know this is a similar question to Multiple Domain Names - One WP Install (non-Multisite) - Default Each Domain name to Category Archive Can I use the same method? If so what needs to be changed for that to work in my instance?
After almost a week of butting my head against this problem, any help is very much appreciated!!
Current .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteCond %{HTTP_HOST} ^([^.]+)\.domain\.org\.nz$
RewriteRule ^(.*) http://domain.org.nz/wordpress/services/%1
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress