I need to convert this code to web.config file. Plz Help..

#Fix Rewrite
Options -Multiviews
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Rewriterule ^(.*)$ $1.php [L,QSA]

Recommended Answers

All 4 Replies

Does your web.config allow rewrite rules then? What are you trying to convert this to, IIS? Are you using IIS URL Rewrite?

I am trying to convert this piece of code to IIS.

@pritaeas .. thanks.. it solved my problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.