0

Hello Every Body

How can i know that the Site runs on the IIS or Apache Webserver.
And how can i redirect a webpage using 301 Redirect in .htaccess..

in Windows and Linux Server.


I write the Coding in .htaccess but it does not work.

Regards
Ujjwal

3
Contributors
2
Replies
3
Views
11 Years
Discussion Span
Last Post by Dani
0

What have you set for redirection and what is "not working"?

AFAIK, the redirection is a single entry (without breaks) like

redirect [[I]status[/I]] oldUrl newUrl

The status is optional and it can be

permanent - (301) resource has moved permanently.
temp - (302). resource has moved temporarily.
seeother - (303) resource has been replaced.
gone - (410) resource has been permanently removed. (When this status is used the new-url argument should not be used.)

Also, check if you have the appropriate read permissions for all the groups.

0

I believe that .htaccess files are unique to the Apache web server (although I may be mistaken). Apache is the httpd server of choice for Linux ... there is a Windows port as well, but most Windows servers use IIS. I'm not sure how to do redirection on IIS.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.