I developed an application on my local using PHP, MySQL and Apache and it has a .htaccess file containing this:
Options +FollowSymlinks
Options -Indexes
#Setting the default handler.
DirectoryIndex home.do
#Supporting .do extensions
AddType application/x-httpd-php .do
#Removing .do file extension if necessary
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.do -f
RewriteRule ^(.*)$ $1.do
But I informed that my customer's web server is IIS and I have to use a web.config file instead of .htaccess. Can anyone direct me through this, please?
Options +FollowSymlinks
Options -Indexes
Order deny,allow
Deny from all
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Options +FollowSymlinks
Options -Indexes
#Setting the default handler.
DirectoryIndex home.do
#Supporting .do extensions
AddType application/x-httpd-php .do
#Removing .do file extension if necessary
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.do -f
RewriteRule ^(.*)$ $1.do
But I informed that my customer's web server is IIS and I have to use a web.config file instead of .htaccess. Can anyone direct me through this, please?
Options +FollowSymlinks
Options -Indexes
Order deny,allow
Deny from all
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
0朵
0个