0

I am having problem removing this index.php using all above solution. can any one help. My system configuration is ubuntu 14.04 and i am using zend framework 1.12.

my .htaccess file has

    RewriteEngine On
    RewriteBase /Reports_Century/public/

    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]

    RewriteRule ^(.+)$ index.php [L]

Any other setting for removing index.php from URL?

2
  • Not really following what you mean by removing index.php? Commented Aug 17, 2014 at 5:39
  • @Adip Patel see this .... stackoverflow.com/questions/20381543/… Commented Aug 17, 2014 at 5:44

1 Answer 1

0

Try using this code:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !(\.wav)$
RewriteRule ^.*$ index.php [NC,L]
RewriteRule !\.(js|ico|txt|gif|jpg|png|css|otf|ttf)$ index.php
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.