php - 404 error due to .htaccess -
i copied our live project sub directory. when trying run it, it's showing 404 error. did required changes in .htaccess file, still showing /publish/index.php page not found.
i checked file , folder exist , have 755 permissions. don't know why showing 404 error.
here .htaccess file code.
rewriteengine on rewritebase /var/www/site/serp/httpdocs/ rewriterule ^robots.txt /robots-development.txt rewriterule ^robots.txt /robots-development.txt rewriterule ^index.htm([^/]+)/$ /publish/index.php?lang_value=$1 [nc] rewriterule ^index.php$ /publish/index.php [nc] rewriterule ^index.htm$ /publish/index.php [nc]
note:- cant restart apache server. can't add in apache conf files.
your rewritebase
seems wrong should relative path documentroot
:
rewriteengine on rewriterule ^robots\.txt$ robots-development.txt [l,nc] rewriterule ^index\.htm([^/]+)/$ publish/index.php?lang_value=$1 [nc,l,qsa] rewriterule ^index\.php$ publish/index.php [nc,l]
Comments
Post a Comment