apache - .htaccess URL Rewrite not working -
i've never been @ .htaccess, i'm trying copy , paste code worked on 1 of domains , modify work here. have several rewritten urls, static, dynamic, can't simplest of them work. 1 testable here: http://lindseymotors.com/home
clearly, index.php available because if access http://lindseymotors.com works.
rewriteengine on rewritecond %{http_host} ^.* [nc] rewriterule ^home$ index.php rewriterule ^home/$ index.php # when answering, if write statement combine # both of statements above 1 appreciated.
as said, these same conditions worked on 1 domains because copied code right over. asked server admin double check on end , fine. ideas?
only thing can think of make sure use of .htaccess on. easiest way can check since server admin says it's fine put random text @ top of .htaccess file. if .htaccess file being read , .htaccess files enabled, should throw 500 internal server error
. if not, don't have .htaccess files enabled , need add allowoverride all
apache config vhost.
here rule combined 1 noted. don't need rewritecond, leave since using previously.
rewriteengine on rewritecond %{http_host} ^.* [nc] rewriterule ^home/?$ index.php [l]
Comments
Post a Comment