php - Godaddy Ubuntu 3.6 mod_rewrite issues -
i have been @ 3 hours , cannot seem mod_rewrite
work godaddy on shared server under subdomain. have app in subdirectory , i've used same rules before on multiple servers know work. here's i've got:
php version 5.3.10-1 ubuntu3.6
subdomain root/ -.htaccess --appdir/ ---.htaccess ----public/ -----.htaccess
subdomain root/.htaccess
options -multiviews
that's document root .htaccess
, many have suggested godaddy servers.
appdir/.htaccess
options -multiviews rewriteengine on rewritebase /appdir rewriterule ^$ public/ [l] rewriterule (.*) public/$1 [l]
this routes requests appdir/public
directory
appdir/public/.htaccess
options -multiviews rewriteengine on rewritebase /appdir/public ### tried adding /appdir ### rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php?url=$1 [pt,l] errordocument 404 index.php
just sure mod_rewrite
available, ran sudo a2enmod rewrite
bash , checked after restarting apache print_r(apache_get_modules());
, sure enough it's there needless i'm @ complete loss problem may be. have similar experiences godaddy , have suggestion on mod_rewrite
running? in advance.
from default ubuntu install , running mod_rewrite have :
enable mod rewrite
a2enmod rewrite
then make sure allowing overrides in site config (/etc/apache2/sites-available/) , update line allowoverride all
in '' directive.
reload apache config
service apache2 reload
Comments
Post a Comment