Monday, January 29, 2018

Automatically Redirect HTTP requests to HTTPS on IIS 7 using URL Rewrite 2.0

In a previous article I covered the installation URL Rewrite 2.0 for IIS 7. This is a plug-in for IIS 7 that allows you to manipulate URL’s.
URL Rewrite has a GUI to allow you to enter rules within IIS 7; in the background all this does is edit the web.config file of the site. I will show you how to create a rule both ways.
In the following example we will redirect HTTP to HTTPs using URL Rewrite. You will need the following items completed in order for this to work correctly.
– SSL Certificate for site installed in IIS.
– Site properly installed and configured for SSL (site set up and binding in IIS configured).
– URL Rewrite 2.0 is installed on the sever.

GUI Version

– Select the website you wish to configure
– In the “Features View” panel, double click URL Rewrite
You will notice there are currently no rules configured for this site. Click “Add Rules…” in the Actions menu to the right of the “Features View” panel
Use the default “Blank rule” and press “OK”.
When editing a rule there are the “Name” field and 4 configuration pull down boxes.
– Enter “Redirect to HTTPS” in the name field.
– Next we will configure the first configuration pull down box called “Match URL”, on the right side of “Match URL” press the down arrow to expand the box.
Within the “Match URL” configuration box we will set the following settings:
Requested URL: Matches the Pattern
Using: Regular Expressions
Pattern: (.*)
We can now edit the next configuration pull down box which is “Conditions”, Press “Add…” to add a new condition to the configuration.
We will configure the condition with the following settings:
Condition Input: {HTTPS}
Check if input string: Matches the Pattern
Pattern: ^OFF$
Press “OK”
You should see your condition in the list of conditions.
For this setting we do not need to configure the “Server Variables” pull down box. Continue onto the “Action” configuration box and pull down the box by selecting the arrow on the right. We will configure the following settings for the “Action” configuration:
Action Type: Redirect
Redirect URLhttps://{HTTP_HOST}/{R:1}
Redirect Type: See Other (303)
Press “Apply” then press “Back to Rules”
You should now see the rule configured on the main screen of the URL Rewrite module.
Test your site, it should now redirect from HTTP to HTTPS.
If we exam the web.config file we can see where the rule was entered. If we entered the rule directly into the web.config file it would show up in the GUI.
Web.Config Rule
You can also edit the web.config file of the site directly and you will be able to see the rule in the GUI. You will need to enter the following within the <system.webServer> </system.webServer> elements.
?
1
2
3
4
5
6
<rule name="Redirect to HTTPS" stopProcessing="true">
<match url="(.*)" />
<conditions><add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />
</rule>
When implementing this solution you need to make sure to use relative paths for all references on your page because there is a possibility you will get a warning asking you if you want to display secure and insecure items. For example, if you have a logo on your page and the URL to this logo is http://domain/images/logo.jpg, do not use the whole path because including the http:// will hard code this image to use http and not https. Instead use /images/logo.jpg.
Source : http://www.jppinto.com/2010/03/automatically-redirect-http-requests-to-https-on-iis7-using-url-rewrite-2-0/

Thursday, January 18, 2018

āļ§ิāļ˜ีāļāļēāļĢāļĒ่āļ­āđ„āļŸāļĨ์āļĢูāļ› JPEG āđƒāļŦ้āļĄีāļ‚āļ™āļēāļ” kb āļĨāļ”āļĨāļ‡ āđāļ•่āđ„āļ‹āļŠ์āđāļĨāļ°āļ„āļ§āļēāļĄāļĨāļ°āđ€āļ­ีāļĒāļ”āđ€āļ—่āļēāđ€āļ”ิāļĄ!!

āļĄีāļ§ิāļ˜ีāļāļēāļĢāļĒ่āļ­āļ‚āļ™āļēāļ”āđ„āļŸāļĨ์āļĢูāļ› JPEG āđƒāļŦ้āđ€āļĨ็āļāļĨāļ‡ āđāļ•่āļ‚āļ™āļēāļ”āđāļĨāļ°āļ„āļ§āļēāļĄāļĨāļ°āđ€āļ­ีāļĒāļ”āļ‚āļ­āļ‡āļ āļēāļžāļ„āļ‡āđ€āļ”ิāļĄ!! āļĄāļēāļāļēāļāļัāļ™āļ„āļĢัāļš!!
āļ‹ึ่āļ‡āļ„ิāļ”āļ§่āļēāļŦāļĨāļēāļĒāđ†āļ„āļ™āļ„āļ‡āļĄีāļ›ัāļāļŦāļēāļāļēāļĢāļĒ่āļ­āđ„āļŸāļĨ์āļ āļēāļžāđƒāļŦ้āđƒāļŦ้āļ‚āļ™āļēāļ”āļĨāļ”āļĨāļ‡āļ—ีāđ„āļĢ āđ„āļŸāļĨ์āļ āļēāļžāļ็āļ­āļ­āļāļĄāļēāļ”ูāđāļĒ่āļĨāļ‡āļ—ุāļāļ„āļĢั้āļ‡āđ„āļ› ... āļ‹้āļģāļĢ้āļēāļĒāļāļ§่āļēāļ™ั้āļ™ āļšāļēāļ‡āļ„āļ™āđ€āļ‹āļŸāļĢูāļ›āđƒāļ™ Quality 100% āđāļ•่āļ”ัāļ™āļĄีāļ‚āļ™āļēāļ”āđƒāļŦāļ่āļ‚ึ้āļ™ āđāļĨāļ°āđ„āļŸāļĨ์āđāļĒ่āļĨāļ‡āļ™ิāļ”āļŦāļ™่āļ­āļĒāļ”้āļ§āļĒāļ‹้āļģ!!

āļ§ัāļ™āļ™ี้āļ็āđ€āļĨāļĒāļĄีāļ§ิāļ˜ีāļāļēāļĢāļĨāļ”āļ‚āļ™āļēāļ”āđ„āļŸāļĨ์āļ āļēāļžāļ—ี่āđ€āļĨ็āļāļĨāļ‡āļ—ัāļ™āļ•āļēāđ€āļŦ็āļ™ āđ€āļŦāļĄืāļ­āļ™āļĒ่āļ­āļĢูāļ›āđƒāļŦāļ่āđ†āđƒāļŦ้āļāļĨāļēāļĒāđ€āļ›็āļ™āļĢูāļ›āđ€āļĨ็āļāđ€āļĨāļĒāļĨ่āļ°āļ„āļĢัāļš
āđāļ•่āļ—ี่āđ„āļŦāļ™āđ„āļ”้!! āļ‚āļ™āļēāļ”āļĢูāļ›āđ€āļ—่āļēāđ€āļ”ิāļĄ!! āļĢāļēāļĒāļĨāļ°āđ€āļ­ีāļĒāļ”āđāļĨāļ°āļ„āļ§āļēāļĄāļ„āļĄāļŠัāļ”āđ€āļ—่āļēāđ€āļ”ิāļĄ!! āļ•่āļēāļ‡āļ•āļĢāļ‡āļ‚āļ™āļēāļ”āđ„āļŸāļĨ์āļ—ี่āđ€āļĨ็āļāļĨāļ‡āđ€āļืāļ­āļšāđ† 5 āđ€āļ—่āļē!! (āļŠāļĄāļĄุāļ•ิāļ§่āļēāđ„āļŸāļĨ์āļĢูāļ›āđ€āļ”ิāļĄ āļ‚āļ™āļēāļ” 2.5 MB āļ„ุāļ“āļ็āļŠāļēāļĄāļēāļĢāļ–āļĒ่āļ­āđƒāļŦ้āđ€āļŦāļĨืāļ­ size āļ—ี่ 500 KB āđ„āļ”้āđ€āļĨāļĒāļ„āļĢัāļš!! āđ‚āļ”āļĒāļ—ี่āļ‚āļ™āļēāļ”āđ€āļ—่āļēāđ€āļ”ิāļĄ āđāļĨāļ°āļ„āļ§āļēāļĄāļ„āļĄāļŠัāļ”āļĢāļēāļĒāļĨāļ°āđ€āļ­ีāļĒāļ”āļ็āđ€āļ—่āļēāđ†āđ€āļ”ิāļĄ āļĄāļ­āļ‡āđ„āļĄ่āļ•่āļēāļ‡āđ€āļĨāļĒāļ„āļĢัāļš)

āļ§ิāļ˜ีāļ™ี้āļ็āļ„ืāļ­ āļāļēāļĢāđƒāļŠ้āđ‚āļ›āļĢāđāļāļĢāļĄāļœ่āļēāļ™āļ—āļēāļ‡āļŦāļ™้āļēāđ€āļ§āļšāļ—ี่āļŠื่āļ­āļ§่āļē JPEGmini āļ„āļĢัāļš ^ ^
āđ‚āļ”āļĒāđ€āļžีāļĒāļ‡āļ­ัāļžāđ‚āļŦāļĨāļ”āļ āļēāļžāđāļĨ้āļ§āđ€āļ­āļēāļ—์āļžุāļ—āļ­āļ­āļāļĄāļē āļ็āļˆāļ°āđ„āļ”้āļ āļēāļžāļ—ี่āđƒāļŦāļ่ āđāļĨāļ°āļĨāļ°āđ€āļ­ีāļĒāļ”āđ€āļ—่āļēāđ€āļ”ิāļĄ āđāļ•่āđ„āļŸāļĨ์āđ€āļĨ็āļāļĨāļ‡āļˆāļ™āđ„āļĄ่āļ­āļĒāļēāļāļˆāļ°āđ€āļŠื่āļ­āđ€āļĨāļĒāļ„āļĢัāļš!! ^ ^
āļŦāļ™้āļēāļ•āļēāđ€āļ§āļšāļ็āđ€āļ›็āļ™āđāļšāļšāļ™ี้āļ„āļĢัāļš

...
āļ§ิāļ˜ีāļ็āļ‡่āļēāļĒāđ†āļ„āļĢัāļš āļ­ัāļžāđ‚āļŦāļĨāļ”āļĢูāļ›āđ€āļ‚้āļēāđ„āļ› āđāļĨ้āļ§āđ‚āļ›āļĢāđāļāļĢāļĄāļĄัāļ™āļˆāļ°āđāļ›āļĨāļ‡āđ„āļŸāļĨ์āđƒāļŦ้āļ­āļ­āđ‚āļ•้āđ€āļĨāļĒāļ„āļĢัāļš (āđ€āļĨืāļ­āļāļ—ี่ Try it now āđāļĨ้āļ§āļ็āđ€āļĨืāļ­āļ select photos āļ„āļĢัāļš)
...
āļ็āļ‚āļ­āđ‚āļŠāļ§์āļœāļĨāļĨัāļžāļ˜์āļ—ี่āļœāļĄāļĨāļ­āļ‡āļ—āļģāđ€āļĨ่āļ™āļ”ูāđ€āļĨāļĒāđāļĨ้āļ§āļัāļ™
āļ”้āļ§āļĒāđ„āļŸāļĨ์āļĢูāļ›āđ„āļŸāļĨ์āļ™ี้āļ„āļĢัāļš

āđ„āļŸāļĨ์āļĢูāļ›āđ„āļŸāļĨ์āļ™ี้ āļŦāļēāļāļ„āļĢāļ­āļ› 100% āļˆāļ°āđ„āļ”้āļ āļēāļžāļĨāļ°āđ€āļ­ีāļĒāļ”āđāļšāļšāļ™ี้āļ„āļĢัāļš (āļ‚āļ™āļēāļ” 5.9 MB)
āļžāļ­āļĒ่āļ­āđāļĨ้āļ§ āļ„āļĢāļ­āļ› 100% āđ„āļ”้āļ āļēāļžāļĨāļ°āđ€āļ­ีāļĒāļ”āđāļšāļšāļ™ี้āļ„āļĢัāļš!! (āļ‚āļ™āļēāļ” 1.3 MB!!)
...
āđ€āļˆ๋āļ‡āđ„āļ›āđ€āļĨāļĒāļ„āļĢัāļš!! āđ€āļĄื่āļ­āļ„āļĢāļ­āļ›āļ āļēāļžāļ”ูāđāļĨ้āļ§ āļ”ูāđāļ—āļšāđ„āļĄ่āļ­āļ­āļ āđāļ•่āļ›āļĢāļēāļāļāļ§่āļēāļ‚āļ™āļēāļ”āđ„āļŸāļĨ์āļ•่āļēāļ‡āļัāļ™āļ–ึāļ‡ 4.4 āđ€āļ—่āļē!! *0*
āļŠāļ™āđƒāļˆāļ­āļĒāļēāļāļĨāļ­āļ‡ āđ„āļ›āļĨāļ­āļ‡āđ„āļ”้āđ€āļĨāļĒāļ„āļĢัāļš āļ—ี่āđ€āļ§āļš http://www.jpegmini.com āļ„āļĢัāļšāļœāļĄ!! ^ ^
āđ€āļ§āļĨāļēāļĒ่āļ­āļĢูāļ›āđ„āļ›āđ‚āļžāļŠāļ•์āļ—ี่āđ„āļŦāļ™āļ•่āļ­āđ„āļŦāļ™āļ—ี่āļˆāļģāļัāļ”āļˆāļģāļ™āļ§āļ™ KB āļŦāļēāļāđ„āļĄ่āļ­āļĒāļēāļāđƒāļŦ้āļ„ุāļ“āļ āļēāļžāđ„āļŸāļĨ์āđ€āļŠีāļĒāđāļĨāļ°āļ­āļĒāļēāļāđ‚āļžāļŠāļ•์āļĢูāļ›āđƒāļŦāļ่āđ† āļ็āđƒāļŠ้āđ‚āļ›āļĢāđāļāļĢāļĄāļ™ี้āļŠ่āļ§āļĒāđ„āļ”้āļˆ้āļē ^ ^
(āđāļ•่āļ–้āļēāđ€āļ­āļēāđ„āļ§้āļŠāļģāļĢāļ­āļ‡āļĢูāļ›āļ āļēāļžāđƒāļŦ้āđ„āļĄ่āđ€āļ›āļĨืāļ­āļ‡āđ€āļ™ื้āļ­āļ—ี่āļ„āļ§āļēāļĄāļˆāļģ āļ็āļ—āļģāđ„āļ”้ āđāļ•่āļˆāļ°āđ€āļŠีāļĒāđ€āļ§āļĨāļēāđ‚āļŦāļĨāļ”āļĢูāļ›āđāļ›āļĨāļ‡āđƒāļ™āđ€āļ§āļšāļ™ีāļ™ั่āļ™āđ€āļ­āļ‡āļ„āļĢัāļš)


source : http://journey-trip-review.blogspot.com/2011/08/jpeg-kb.html