Connecting Tech Pros Worldwide Forums | Help | Site Map

redirection problem with .htaccess

Newbie
 
Join Date: Jul 2008
Posts: 10
#1: Aug 7 '08
Hi,

I am new to IIS.In apache I am using .htaccess file for redirection.But in ISS its not working.How can I enable .htccess in ISS.Or is there any other way.

My .htccess file contains

RewriteEngine on
RewriteRule ^([^/]*\.html)$ index.php?page_request=$1&%{QUERY_STRING} [L]

Regards,
Roshin

kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#2: Aug 7 '08

re: redirection problem with .htaccess


You could try adding it to the web extensions and see if that works...
Newbie
 
Join Date: Jul 2008
Posts: 10
#3: Aug 7 '08

re: redirection problem with .htaccess


Quote:

Originally Posted by kenobewan

You could try adding it to the web extensions and see if that works...


can you please explain about web extentions...
kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#4: Aug 9 '08

re: redirection problem with .htaccess


In IIS you can allow and disallow web extensions. Open IIS and look for web extensions.
Newbie
 
Join Date: Aug 2008
Posts: 4
#5: Aug 30 '08

re: redirection problem with .htaccess


hey you can use response object to redirect like

<% response.redirect "url" %>
kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#6: Aug 30 '08

re: redirection problem with .htaccess


Quote:

Originally Posted by mukesh1989

hey you can use response object to redirect like

<% response.redirect "url" %>

This won't work unless the page is loaded in the first place, which it is not...
Reply


Similar IIS / Microsoft Internet Information Services bytes