Forum Moderators: phranque
Here's what my delima is.. I want to take a current SEF URL and use a sub-domain instead. For example:
CURRENT:
http://www.example.com/business-directory/Florist-Retail.html (Florist Retail Category)
TO:
[florist-retail.example.com...]
If it's possible to add that into the Joomla sh404SEF component, I would do it.. but I think I'm going to need to modify my .htaccess file to get that to work.
Any suggestions are greatly appreciated.
Thanks in advance!
Shane
But we've discussed subdomain to subdirectory rewriting quite often here, so you should be able to find many previous threads on that subject.
One caveat is that your "category" (florist-retail) will have to be carefully-controlled, because the rules on what constitutes a valid domain component are quite restrictive: Letters and numbers and hyphens only, and the first character must be a letter. So do be careful with that aspect of this project.
Jim
Thanks for the reply.
Shane
the sh404SEF was already rewriting the URI from something like: example.com/index.php?blah=blah_blah&234, etc. to example.com/blah
Note that your explanation above is exactly backwards.
This is how the rewrite actually works:
The Pattern in the RewriteRule matches an incoming URL request for:
example.com/blah /index.php?blah=blah_blah&234 for the content. The distinction between URLs 'used on the web' and internal filepaths 'used inside the server' may seem pedantic, but is crucial to the understanding of this stuff.