Web.config file
Posted by: SuperArtGuy (---.triad.res.rr.com)
Date: January 31, 2015 11:09PM

I need to use a Windows Server for a project and this is the first time I've ever used Windows. My setup will use php and mySQL database. It appears that the system is Windows NT build 9200 (Windows Server 2012 Standard Edition) i586.
I've always used Linux servers in the past so for rewrites etc. I used a .htaccess file. But it appears I need to use a Web.config. So my questions are.
1. Where do you place the Web.config file...Is it in the httpdocs folder or somewhere else.
2. I need to convert the following .htaccss code into a Web.config file how do I do that?
Options FollowSymLinks
Options -MultiViews
RewriteEngine ON
RewriteCond %{HTTP_HOST} !^www\.website\.com
RewriteRule (.*) [www.website.com] [R=301,L]
RewriteBase /
RewriteRule ^index\.html$ index.php [T=application/x-httpd-php,L]
RewriteRule ^event-([^/]+)\.html/?$ /event.php?eventID=$1 [L]
RewriteRule ^([^/]+)\.html/?$ /page.php?pageLinkName=$1 [L]
ErrorDocument 404 [www.website.com]
Thanks in advance.

Options: ReplyQuote
Re: Web.config file
Posted by: RiggsFolly (---.as43234.net)
Date: February 01, 2015 12:06AM

Hi Super,

This is not an IIS help site.

I think you may be asking this question in the wrong place, sorry.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-



Edited 1 time(s). Last edit at 02/01/2015 12:06AM by RiggsFolly.

Options: ReplyQuote
Re: Web.config file
Posted by: rinomasaya (111.92.117.---)
Date: September 14, 2015 10:05AM

More abut......Difference between Machine.config and web.config

[net-informations.com]

Rino

Options: ReplyQuote


Sorry, only registered users may post in this forum.