Hosting on GoDaddy Subdirectory Mod Rewrite Problems

Jay Hodges Posted in Technical Support 1 decade 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/apache_rewrite.php [L]
RewriteRule ^action/([A-Za-z0-9\-/]+)$ /system/handlers/actions.php?action=$1&%{QUERY_STRING} [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 1 decade ago

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