Since about 3 weeks ago until today, my Apache server stopped working on Windows XP. I have no idea why it was stopped. I have searched some solutions on Google about this. Some solution asked whether i have Skype installed on my machine, because it was known that Skype can cause conflict with apache because Skype uses port 80 (solution if Skype is the reason is : 1) uninstalling Skype, or 2) modify apache port to 8081 for example).
(more…)
Tag: Apache
-
Apache Stopped Working on Windows
-
With or Without WWW
Folks, some of you have might have a website. For example you develop http://www.google.com (OF COURSE this is just an example :)). You might have a question, whether use http://google.com (w/o “www”), or http://www.google.com (w/ “www”). I don’t suggest that “www” is better, vice versa. But i’ll tell it about how to use with only, or without only.
The key is, you must create a .htaccess file in your root directory (or modify the old one if you’ve had it)
If you choose with www, use it in your .htaccess file
RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.com$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]