-
MODX Staff
- 730 Posts
You could accomplish that with a mod_rewrite rule in your .htaccess file.
http://www.workingwith.me.uk/articles/scripting/mod_rewrite
Hey netProphET,
I'll take a look at this, thanks!
I make templates for desktop and mobile versions of the website I'm designing for. Since I primarily don't make fluid site designs, and there's a need to do minor tweaking to the HTML for the mobile version for things like the layout and such, I find that mobile template switcher plugin works for me. I'm using the one with the <standard> and <mobile> tags. I'm still looking into the htaccess file at the moment.
But that's a good question I should look into as well, right now I find the need to change only a small portion of the HTML for my mobile but I may as well try to reduce the amount of changes to the HTML script to nil while fully relying on CSS for display for mobile or desktop editions of the site.
I have a few sites where I am making minor changes for mobile browsers and many sites that make exceptions for IE users. I plan on more robust mobile CSS in the near future but I am first looking for better mobile menus for tablets where previously I relied upon roll-over on desktops.
Another thing I am doing is print CSS that results in more professional prints or PDFs from the website.