urgent help needed - Printable Version
+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: urgent help needed (/thread-116933.html)
urgent help needed - dubaidxb - 04-15-2012
I need urgent help that I was last using .htaccess file but while i shift my hosting to windows server its not working. now please tell me what i have to do? i also want the code to redirect non www to www.
so anyone can please tell me what will I do?
with best regards
RE: urgent help needed - faviouz - 04-15-2012
.htaccess is for the Apache web server. Since you're on a IIS server, you have to edit a file called web.config instead - the equivalent to .htaccess on Windows. Much like Apache needs the rewrite module, for this to work you will need the IIS Rewrite module.
If you prefer to do things manually, simply open your web.config file and add the following code to the <system.webServer> section. Make sure you replace example.com with your own domain.
Otherwise, there is a GUI in IIS to add rewrite rules which you might find easier. See the first part of this tutorial for some information:
RE: urgent help needed - dubaidxb - 04-15-2012
thanks dear for the fast response. will do this right now