I have the great pleasure of upgrading a Joomla 1.0 site to v3.5 (no comments from the peanut gallery please, lol). Overall it's going just fine, but the old version of writing SEF urls is quite different than v3, and I'm not an expert in Apache/htaccess.
The vast majority of the links that are the greatest concern are those using a custom component for products being sold. such as this:
www.example.com/component/option,com_virtuemart/page,shop.product_details/flypage,shop.flypage/product_id,1/category_id,1/manufacturer_id,0/Itemid,59
There are many core Joomla links such as this in play, and should be converted, but are less critical:
www.example.com/content/view/106/159/
These are the two sets of .htaccess that are currently in use. I've tried placing the v1 SEF section within the new .htaccess file, but it interferes with the workinig v3.5, and the 404 errors seem to persist.
## Begin - Joomla! v1.0 SEF Section (from old site).
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
## End - Joomla v1 SEF Section.
## Begin - Joomla! v3.5 core SEF Section.
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
## End - Joomla! core SEF Section.
As it is now, any links such as the above are resulting in a 404 error, so the simplest "simplistic" solution I can imagine (but don't know how to setup) is to have a folder called \component
(singular) and within that use .htaccess
and mod_rewrite
in some way that Apache will parse, capturing the "query string", and redirect anything like it to a custom component where we handle all the conversion issues and redirect accordingly:
www.example.com/component/option,com_virtuemart/.../Itemid,59
rewrites to
www.example.com/index.php?option=com_mycomponent&...&Itemid=59
Is this a practical approach, and if so, how would the .htaccess look, and if not, is there another solution that I'm not aware of (not much reliable J1.0 documentation out there anymore)