Showing posts with label iis. Show all posts
Showing posts with label iis. Show all posts

March 31, 2011

Redirecting Your Visitors to Your Preferred Domain

A typical website is configured to serve the same content via two addresses: example.com and www.example.com. This redundancy will increase the chances of someone reaching that website directly; but poses a problem for search engines, and you.

Search engines treat a domain and its subdomains as different websites altogether. This means that content available on example.com and www.example.com will be indexed and ranked separately. Thus, a page from your website could be presented multiple times in search results, but not as high as it could possibly get. Moreover, search engines weigh the importance of a page in terms of the number of backlinks to that page. If websites backlink to YourAwesomeArticle.html in multiple ways (specifically by omitting or including the www prefix), this weight will be distributed between these URLs.

February 17, 2011

URL Rewriting On IIS/PHP Using PATH_INFO

IIS does not directly support URL rewriting. For this purpose you need extensions such as Helicon Tech ISAPI Rewrite, Ionic's Isapi Rewrite Filter or URL Rewrite Module for IIS 7.0. Without such extensions, PHP applications that capitalize on URL rewriting may work on IIS with not-so-clean URLs; or may not work at all. Yet some versatile applications can use PATH_INFO style clean URLs when mod_rewrite or its equivalent functionality is not available.

In the following article I will show you how to test and fix your PHP installation to make URLs containing PATH_INFO work as expected.