Hosting on GoDaddy Subdirectory Mod Rewrite Problems

Jay Hodges Posted in Technical Support 9 years ago

I had a little challenge getting mod_rewrite working on GoDaddy hosting with OSSN.

In the .htaccess file I made the following changes:

Options -Indexes -Multiviews

RewriteRule ^rewrite.php$ /installation/tests/apacherewrite.php [L]
RewriteRule ^action/([A-Za-z0-9\
-/]+)$ /system/handlers/actions.php?action=$1&%{QUERYSTRING} [L]
RewriteRule ^([A-Za-z0-9\
-]+)$ /index.php?h=$1 [QSA,L]
RewriteRule ^([A-Za-z0-9\_-]+)/(.*)$ /index.php?h=$1&p=$2 [QSA,L]

Adding the -Multiviews and adding the "/" in front of each Rewrite rule allowed the site to function properly. Hope this helps someone else out.

Replies
Indonesian Arsalan Shah Replied 9 years ago

Thanks for solution , we shall put this into our wiki page.