Trying to enable URL Rewriting on C5 install on an InMotion Hosting account

Permalink
I have a C5 install in a sub-directory on a new InMotion Hosting account and all is well IF and ONLY IF URL rewriting is disabled. Once enabled, with or without an additional htacess file, I get a 404 error for pages beyond the home page. Here is the production link:http://biz229.inmotionhosting.com/~barkin20/hooves/...

Their support is of no help and I'm thinking this is similar to an issue I had with Bluehost where you CAN'T render pages without the index.php until the final/primary domain is pointing to the sub-directory and the final canonical URLs are in place. Does this make sense to anyone else?

barkingtuna
 
tallacman replied on at Permalink Reply
tallacman
this works for me:
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

they also have an article about it you can find with the search box on their site.
barkingtuna replied on at Permalink Reply
barkingtuna
I can't test this as the domain is not yet pointing to InMotion from GoDaddy and SSL can't be enabled until then. I can't get "Pretty URLs" to work with the temporary URL at this point. Do you have a recommendation for that?
barkingtuna replied on at Permalink Reply
barkingtuna
OK... so I've pointed the domainhttp://www.hoovesnwheels.com to InMotion and it's in the throws of propagation. The new, correct, site is rendering on my mobile but not yet through Cox on my office desktop. That said, I applied your htacess settings as well as enabled URL Rewriting and still get 404 errors for pages beyond the home page. Caching is off across the board and I deleted all cache files to be safe. Canonical URLs are set and the SSL cert is in place. So basically the website is pulling up as intended but I cannot get URL Rewriting to work