First of all, do you have a subdomain [noparse]www.cisco.mydomain.com[/noparse]? If you don’t than that’s a DNS problem and not something Apache can help you with.
Of course if the DNS exists you still need a VirtualHost on there.
php.ini is of no use here I btw; you need to create an .htaccess file for Apache to do what you want. I suggest you start by reading this tutorial and come back if you have any specific questions
Okay, then you need to make sure the subdomain(s) you want exist and point the correct directory; i.e. the directory your main website lives in.
Well, I can’t help you with the first part (replace all the links in your code), that’s completely up to you. As for Apache serving different content than requested I can help you with that, but please take a look at that tutorial I sent you first. It contains a lot of information and covers almost everything you would ever like to do with .htaccess. Of course if you can’t find what you’re looking for, or are confused about something, don’t be afraid to ask
But you do need those subdomains to exist, otherwise it wouldn’t make sense linking to them, now would it?
You could set this up with a wildcard DNS and mass virtual hosting, but most shared hosting providers don’t allow this. Or do you have a dedicated server / VPS or something?
As for how to handle the requests, using subdomains like you’ve suggested will mean that each has its own subdirectory and mod_rewrite code will have to be included in each (and EVERY) subdomain to get redirected back to the main domain’s subdirectory (although I have to ask why go UP one physical directory level).
A better way MIGHT be to PARK the subdomain ON the main domain and share all the files - just keep the differentiation between subdomains using the query string. If using Apache’s “Dynamically configured mass virtual hosting,” that would merely fall into place.
Well it says “Leave the wildcard empty if you want all traffic to go to the same target as your primary domain.”
Going from that I’d say you don’t have to fill in anything
Have you tested if the subdomains work? i.e. create a very basic test.html, upload it, and see if you can request it from [noparse]www.cisco.mysite.com/test.html[/noparse] for example?
All you need to do is to use mod_rewrite to capture the (non-www) subdomain and create a query string to assign it to the company key (YOU create the link in the NEW format, mod_rewrite converts that to something Apache can serve).
As for the switches/wired “specification,” capture those (before the other RewriteRule) and redirect to your DirectoryIndex with those keys assigned the values captured from the path. Of course, check that the path does not resolve to a file or directory before redirecting!