When doing an apache rewrite for say mywebsite.com, and redirecting it to www.mywebsite.com I would have an issue where the new link would be http://www.mywebsite.com// and as such mywebsite.com/schedule.php would become www.mywebsite.com//schedule.php.
Before, the Rewrite was this:
RewriteCond %{HTTP_HOST} ^mywebsite\.com$
RewriteRule ^(.*)$ http://www.mywebsite.com/$1 [R=301,L]
I changed the rewrite to the following to fix this:
RewriteCond %{HTTP_HOST} ^mywebsite\.com$
RewriteRule ^(([^/]+/)*)/+(.*)$ http://www.mywebsite.com/$1$3 [R=301,L]
Now the request mywebsite.com/schedule.php will be redirected to http://www.mywebsite.com/schedule.php
-Dravor
Thursday, February 12, 2009
Wednesday, February 11, 2009
Windows cannot open Help and Support because a system service is not running.
When you try to use the Windows Resource kit help feature, or another help feature you see the following:
Windows cannot open Help and Support because a system service is not running. To fix this problem, start the service named Help and Support
To fix this error:
Click Start, click Run, type cmd in the Open box, and then click OK.
At the command prompt, locate the following folder:
type in cd \
type in cd %windir%\PCHealth\HelpCtr\Binaries
type HelpSvc.exe /regserver /svchost netsvcs /RAInstall
type HSCUpd.exe -i hscmui.cab
Windows cannot open Help and Support because a system service is not running. To fix this problem, start the service named Help and Support
To fix this error:
Click Start, click Run, type cmd in the Open box, and then click OK.
At the command prompt, locate the following folder:
type in cd \
type in cd %windir%\PCHealth\HelpCtr\Binaries
type HelpSvc.exe /regserver /svchost netsvcs /RAInstall
type HSCUpd.exe -i hscmui.cab
Subscribe to:
Comments (Atom)