Subdomain Rewrite
I recently stopped promoting/supporting one of my all time favorite projects – KudzuASP. KudzuASP is an advanced template engine for Classic ASP. While I still answer the occassional question about it I don’t need a subdomain or forum. There are those who are still looking for information and the most recent download and rather than let the browser kick back a 404 page for a non-existent sub-domain I decided to route them to a page on the sandbox site using Mod Rewrite.
Here’s the lines I added to the .htaccess file.
RewriteCond %{HTTP_HOST} kudzu.trilogicllc.com$ [NC]
RewriteRule ^(.*)$ http://sandbox.trilogicllc.com/kudzuasp/ [R=301,L]
RewriteCond %{HTTP_HOST} www.kudzu.trilogicllc.com$ [NC]
RewriteRule ^(.*)$ http://sandbox.trilogicllc.com/kudzuasp/ [R=301,L]
Now I’m routing EVERYTHING from the KudzuASP subdomain to a single page in the Wordpress blog space that says I’ve dropped support for the project. Is anyone still working in Classic ASP? Here’s the kicker: I don’t want this page to show up in the menu system but I still want to be able to view it.
I’ve heard you can do this in Wordpress by creating a page and then leaving it unpublished once you’ve finished it. I’d prefer to have a checkbox that says “Show in Menus” on something but until the method I just mentioned doesn’t work. Unless I’m already logged in to the site I still get a 404 page. Until a more workable solution presents itself I’ll just have to make the page public.
~A













