Hi i am working on a website that had no .htaccess previously. site only opens with extension domain.com/abc.php but i want it to be domain.com/abc I have searched some forums added some to my htaccess but so far i m insuccessful. I m keep getting my 404 error Below is my .htaccess. Please help me out Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^aieus\.com [nc] rewriterule ^(.*)$ http://www.aieus.com/$1 [r=301,nc] ## EXTENSION REWRITE HIDE PHP# RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php ## Errors ## ErrorDocument 404 /404.php
I found the problem. Let me explain it to those that have similar problem. First my issue was related to Godaddy Hosting. So, addition to the post above I added : #Fix Rewrite Options -Multiviews to fix the problem.