kb
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| kb [2011/05/03 11:51] – [**__Windows 7__**] atl | kb [2013/12/17 22:01] (current) – [**__MS Office__**] atl | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| - | |||
| - | ====== **__General Web__** ====== | ||
| - | |||
| - | * [[http:// | ||
| - | |||
| - | ===== How to Redirect a Web Page ===== | ||
| - | |||
| - | ==== 301 Redirect ==== | ||
| - | |||
| - | 301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code " | ||
| - | |||
| - | You can Test your redirection with Search Engine Friendly Redirect Checker | ||
| - | |||
| - | Below are a Couple of methods to implement URL Redirection | ||
| - | |||
| - | ==== IIS Redirect ==== | ||
| - | |||
| - | * In internet services manager, right click on the file or folder you wish to redirect | ||
| - | * Select the radio titled "a redirection to a URL". | ||
| - | * Enter the redirection page | ||
| - | * Check "The exact url entered above" and the "A permanent redirection for this resource" | ||
| - | * Click on ' | ||
| - | |||
| - | ==== ColdFusion Redirect ==== | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | |||
| - | ==== PHP Redirect ==== | ||
| - | < | ||
| - | <? | ||
| - | Header( " | ||
| - | Header( " | ||
| - | ?> | ||
| - | </ | ||
| - | |||
| - | ==== ASP Redirect ==== | ||
| - | < | ||
| - | <%@ Language=VBScript %> | ||
| - | <% | ||
| - | Response.Status=" | ||
| - | Response.AddHeader " | ||
| - | %> | ||
| - | </ | ||
| - | |||
| - | ==== ASP .NET Redirect ==== | ||
| - | < | ||
| - | <script runat=" | ||
| - | private void Page_Load(object sender, System.EventArgs e) | ||
| - | { | ||
| - | Response.Status = "301 Moved Permanently"; | ||
| - | Response.AddHeader(" | ||
| - | } | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | |||
| - | ==== JSP (Java) Redirect ==== | ||
| - | < | ||
| - | <% | ||
| - | response.setStatus(301); | ||
| - | response.setHeader( " | ||
| - | response.setHeader( " | ||
| - | %> | ||
| - | </ | ||
| - | |||
| - | === CGI PERL Redirect ==== | ||
| - | < | ||
| - | $q = new CGI; | ||
| - | print $q-> | ||
| - | </ | ||
| - | |||
| - | ==== Ruby on Rails Redirect ==== | ||
| - | < | ||
| - | def old_action | ||
| - | headers[" | ||
| - | redirect_to " | ||
| - | end | ||
| - | </ | ||
| - | |||
| - | ==== Redirect Old domain to New domain (htaccess redirect) ==== | ||
| - | |||
| - | Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain. | ||
| - | The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed) | ||
| - | |||
| - | < | ||
| - | Options +FollowSymLinks | ||
| - | RewriteEngine on | ||
| - | RewriteRule (.*) http:// | ||
| - | </ | ||
| - | |||
| - | Please REPLACE www.newdomain.com in the above code with your actual domain name. | ||
| - | |||
| - | In addition to the redirect I would suggest that you contact every backlinking site to modify their backlink to point to your new website. | ||
| - | |||
| - | Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled. | ||
| - | |||
| - | Redirect to www (htaccess redirect) | ||
| - | |||
| - | Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com | ||
| - | The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed) | ||
| - | |||
| - | < | ||
| - | Options +FollowSymlinks | ||
| - | RewriteEngine on | ||
| - | rewritecond %{http_host} ^domain.com [nc] | ||
| - | rewriterule ^(.*)$ http:// | ||
| - | </ | ||
| - | |||
| - | Please REPLACE domain.com and www.newdomain.com with your actual domain name. | ||
| - | |||
| - | Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled. | ||
| - | |||
| - | How to Redirect HTML | ||
| - | |||
| - | Please refer to section titled 'How to Redirect with htaccess', | ||
| - | |||
| - | |||
| - | ---- | ||
| - | |||
| - | Source: http:// | ||
| - | |||
| - | ====== **__Dokuwiki FAQ__** ====== | ||
| - | * [[http:// | ||
| - | * [[http:// | ||
| - | * [[http:// | ||
| - | * [[http:// | ||
| - | |||
| - | ====== **__Apache SSL Win32__** ====== | ||
| - | |||
| - | * [[http:// | ||
| - | |||
| - | To install, follow these steps: | ||
| - | |||
| - | - Download apache_2.2.4-win32-x86-no_ssl.msi:< | ||
| - | - Install Apache:< | ||
| - | - Stop Apache:< | ||
| - | - Uninstall the Apache service:< | ||
| - | - Kill the ApacheMonitor:< | ||
| - | - Download apache-2.2.4_openssl-0.9.8e.zip. | ||
| - | - Unzip into the directory you installed Apache in:< | ||
| - | - If you are using Cygwin' | ||
| - | - Install Apache as a service with SSL support:< | ||
| - | - And finally, start Apache:< | ||
| - | |||
| - | To verify it's working, browse to https:// | ||
| - | |||
| - | Note: The .so files are actually Win32 DLL executables, | ||
| - | |||
| - | |||
| - | * [[http:// | ||
| - | |||
| - | * [[http:// | ||
| - | |||
| - | * [[http:// | ||
| - | < | ||
| - | RewriteEngine On | ||
| - | RewriteCond | ||
| - | RewriteRule ^(.*)$ https:// | ||
| - | </ | ||
| - | |||
| - | |||
| - | ====== **__Wordpress & Troubleshooting__** ====== | ||
| - | |||
| - | Cas de MAJ bloqué avec le message suivant: | ||
| - | < | ||
| - | Téléchargement de la mise à jour depuis http:// | ||
| - | |||
| - | Décompression de la mise à jour… | ||
| - | </ | ||
| - | |||
| - | Note: Cas rencontré avec XAMPP 1.7.3 en localhost | ||
| - | |||
| - | Il aurait suffi de mettre un temps d' | ||
| - | < | ||
| - | php_value max_input_time 200 | ||
| - | php_value max_execution_time 200 | ||
| - | php_value post_max_size 20M | ||
| - | php_value upload_max_filesize 15M | ||
| - | </ | ||
| - | ====== **__Windows 7__** ====== | ||
| - | |||
| - | * [[http:// | ||
| - | How to Stop sidebar.exe Using Lots of Memory | ||
| - | Posted on March 7, 2011 by Brendan in Windows | ||
| - | One of my readers, TED has made a suggestion as to a hack fix to the sidebar.exe memory problem (as documented in my blog post Windows sidebar.exe Memory Leak). With some spare time at the moment, I’ve been able to implement his suggestion and confirm it works. | ||
| - | |||
| - | I’ve written a batch script, and confirmed this works in Windows 7 (should work in Windows Vista too). I created a batch file called restart-sidebar.bat, | ||
| - | |||
| - | @echo off | ||
| - | taskkill /im sidebar.exe /f | ||
| - | echo This script will now sleep momentarily… | ||
| - | TIMEOUT /T 2 | ||
| - | echo Starting sidebar.exe now… | ||
| - | start sidebar.exe | ||
| - | |||
| - | The idea is it will kill the process called / task with the image name of, sidebar.exe, | ||
| - | |||
| - | To complete the setup, create a new scheduled task specifying the path to your newly created batch file (mine was c: | ||
| - | |||
| - | For your information – I’ve encountered on only a few occurrences problems in the past when shutting. The sidebar process has stalled the shutdown procedure and Windows has forcefully killed the process. On login again I’ve lost a few sidebar settings. While I’ve not encountered this running the above batch script, it’s possible you may encounter this. If you’re concerned about it, drop the /f from the taskkill line in the above script (as to not force it) and increase the timeout value from 2, to up to 20 seconds to allow it to safely exit. | ||
| - | |||
| - | Downsides / Cons - I haven’t been able to find something to force the batch file to run in a minimised window (so it pops up and runs as a black command prompt window). This I’m a little bit disappointed with – you could perhaps create a shortcut to the batch file and set the properties on it to start minimised – however I’ve not confirmed this works. | ||
| - | |||
| - | Advantages / Pluses - It’s a simple and easy fix. Avoids the pain of closing all your programs and restarting / logging off. Runs in seconds and doesn’t require administrative privileges to run. | ||
| - | </ | ||
| - | |||
| - | ====== **__Windows Vista__** ====== | ||
| - | |||
| - | * [[http:// | ||
| - | * [[http:// | ||
| - | |||
| - | ====== **__Windows XP__** ====== | ||
| - | |||
| - | |||
| - | ===== WINDOWS XP SHUTDOWN & RESTART TROUBLESHOOTING ===== | ||
| - | |||
| - | * [[http:// | ||
| - | |||
| - | * [[http:// | ||
| - | |||
| - | ==== Shares Access Denied & IRPStackSize ==== | ||
| - | * [[http:// | ||
| - | shares problems can be solved by the method of " | ||
| - | |||
| - | - Run regedit. | ||
| - | - Navigate to the following key: | ||
| - | < | ||
| - | - In the right pane, double-click the IRPStackSize value. | ||
| - | NOTE: If the IRPStackSize value does not already exist, use the following procedure to create it: | ||
| - | a. In the Parameters folder of the registry, right-click the right pane. | ||
| - | b. Point to New, and then click DWord Value. | ||
| - | c. Type IRPStackSize. | ||
| - | | ||
| - | - Change the Base to decimal. | ||
| - | - In the Value Data box, type a value that is larger than the value that is listed. | ||
| - | If you created the IRPStackSize value using the procedure described in step 4, the default value is 15. It is recommended that you increase the value by 3. Therefore, if the previous value was 11, type 14, and then click OK. | ||
| - | - Close the Registry Editor and restart the computer. | ||
| - | |||
| - | If the problem persists after you complete the preceding procedure, try to increase the value of IRPStackSize even more. The maximum value for Windows 2000 is 50 (0x32 hex). | ||
| - | |||
| - | If you are running Windows NT 4.0, and the problem persists after you complete the preceding procedure, you may have to apply Windows NT Service Pack 4 or Service Pack 5. | ||
| - | |||
| - | |||
| - | ==== HID Input Service failed to start ==== | ||
| - | * [[http:// | ||
| - | < | ||
| - | Event Viewer: | ||
| - | |||
| - | Event Type: Error | ||
| - | Event Source: Service Control Manager | ||
| - | Event Category: None | ||
| - | Event ID: 7023 | ||
| - | Date: 22/12/2007 | ||
| - | Time: 1:25:00 PM | ||
| - | User: N/A | ||
| - | Computer: WDGC | ||
| - | Description: | ||
| - | The HID Input Service service terminated with the following error: | ||
| - | The system cannot find the file specified. | ||
| - | </ | ||
| - | The following could be a solution | ||
| - | |||
| - | - " | ||
| - | - Type " | ||
| - | - Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentC ontrolSet\Services\HidServ\Parameters | ||
| - | - In the right pane, right-click in the blank area and select " | ||
| - | - Name the value " | ||
| - | - Double-click the new entry and enter **" | ||
| - | - Click OK, and close the registry window | ||
| - | Exclamation Reboot. | ||
| - | |||
| - | If you are reluctant to make manual registry edits, the following will make the registry change for you: | ||
| - | |||
| - | Using your mouse, Highlight the entire contents of the code box below, including any blank lines. Then do a Right-click | " | ||
| - | < | ||
| - | Windows Registry Editor Version 5.00 | ||
| - | |||
| - | [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HidServ\Parameters] | ||
| - | " | ||
| - | 00, | ||
| - | 68, | ||
| - | </ | ||
| - | |||
| - | Open a new Notepad session. Click Format and make certain that Word Wrap is disabled. Do a Right-click | " | ||
| - | |||
| - | Exit Notepad. Double click your new file, fix_regs.reg[/ | ||
| - | Reboot. | ||
| - | |||
| - | |||
| - | [[http:// | ||
| - | SHUTDOWN & RESTART | ||
| - | TROUBLESHOOTING]] | ||
| - | |||
| - | ==== SHUTDOWN WORKS, BUT IT’S REAL SLOW ==== | ||
| - | |||
| - | - If it appears that Win XP is not shutting down, give it some time. Some users report a minute or longer for shutdown to visibly start. Generally, this is a consequence of software that is running when shutdown is attempted. It also may have something to do with particular hardware. If you experience this problem, be sure to close all running programs before attempting shutdown and see if this solves your problem. If so, then you can determine, by trial and error, which program(s) are involved. | ||
| - | - Newsgroup correspondent “Sarah” provided one specific solution for this. In Control Panel | Administrative Tools | Services, stop the Nvidia Driver Helper service. (You can also get this by launching SERVICES.MSC from a Run box.) Many other newsgroup participants quickly confirmed that this solved this “extremely slow shutdown” problem for them (it’s the most successful solution for this problem to date). According to correspondent Gan Ming Teik, downloading and installing the new version 23.11 Nvidia driver also solves this problem. | ||
| - | - Correspondent Ron Spruell found that disabling the Terminal Services service reduced his shutdown time from over 2 minutes (hanging at the “Windows is shutting down” screen) to about 10 seconds. To disable Terminal Services, follow the steps in the prior paragraph for launching SERVICES.MSC. Please note that Terminal Services is required in Windows XP for running Remote Assistance, Fast User Switching, and (in XP Pro) Remote Desktop. | ||
| - | - Correspondent Graeme J.W. Smith reported a more obscure cause of slow shutdown: In Win XP Professional, | ||
| - | - The Gear Software Security Service (GEARSEC.EXE), | ||
| - | - MS-MVP Gary Thorn discovered that the Event Log can slow down Win XP shutdown. Disabling event logging removed the slowdown. If this works for you, then the real troubleshooting begins: finding out, by trial and error, what item that is being logged is causing the actual slowdown. (In Gary’s case, the Telephony service was causing the problem.) To disable the Event Log, launch the Services console as detailed in No. 2 above, and disable Event Log (right-click on Event Log, click Properties, under Startup Type select “Disabled”). | ||
| - | - In a domain environment, | ||
| - | |||
| - | ===== How to change Terminal Server' | ||
| - | [[http:// | ||
| - | |||
| - | | ||
| - | By default Terminal Server and Windows 2000 Terminal Services uses TCP port 3389 for client connections. Microsoft does not recommend that this value be changed. However, if it becomes necessary to change this port, follow these instructions. | ||
| - | |||
| - | |||
| - | MORE INFORMATION | ||
| - | WARNING: If you use Registry Editor incorrectly, | ||
| - | |||
| - | To change the default port for all new connections created on the Terminal Server: | ||
| - | 1. Run Regedt32 and go to this key: | ||
| - | HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp | ||
| - | NOTE: The above registry key is one path; it has been wrapped for readability. | ||
| - | |||
| - | 2. Find the " | ||
| - | |||
| - | To change the port for a specific connection on the Terminal Server: | ||
| - | • Run Regedt32 and go to this key: | ||
| - | HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\connection | ||
| - | NOTE: The above registry key is one path; it has been wrapped for readability. | ||
| - | 3. Find the " | ||
| - | |||
| - | NOTE: Because the use of alternate ports has not been fully implemented for Terminal Server 4.0, support will be provided as " | ||
| - | |||
| - | To Alter the Port on the Client Side | ||
| - | 1. Open Client Connection Manager. | ||
| - | 2. On the File menu, click New Connection, and then create the new connection. After running the wizard, you should have a new connection listed there. | ||
| - | 3. Making sure that the new connection is highlighted, | ||
| - | 4. Edit the .cns file using Notepad changing " | ||
| - | 5. Now import the file back into Client Connection Manager. You may be prompted to overwrite the current one, if it has the same name. Go ahead and overwrite it. You now have a client that has the correct port settings to match your change Terminal Server settings. | ||
| - | |||
| - | ===== Supprimer le dossier de partage du poste de travail ===== | ||
| - | [[http:// | ||
| - | A l' | ||
| - | Pour ceux qui n' | ||
| - | Supprimer le dossier de partage | ||
| - | |||
| - | * Faites Démarrer => Exécuter et tapez regsvr32 -u " | ||
| - | * Si cela ne fonctionne pas, allez voir dans le répertoire d' | ||
| - | o Même opération : Démarrer => Exécuter et tapez regsvr32 -u " | ||
| - | |||
| - | |||
| - | Le dossier a disparu ! | ||
| - | Rétablir le dossier de partage | ||
| - | |||
| - | * Faites Démarrer => Exécuter et tapez regsvr32 -c " | ||
| - | |||
| - | |||
| - | Le dossier réapparait alors dans le poste de travail. | ||
| - | |||
| - | ===== L' | ||
| - | [[http:// | ||
| - | |||
| - | Astuce performances système : **L' | ||
| - | Notre cher Windows gère l’explorateur, | ||
| - | |||
| - | Attention tout de même, la création d’un nouveau processus gérant l’explorateur consomme plus de mémoire. Astuce à éviter si votre RAM est insuffisante. | ||
| - | |||
| - | Ouvrir regedit | ||
| - | Allez dans HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer | ||
| - | Créez la valeur DWORD DesktopProcess et donnez lui la valeur 1. 0 est la valeur par défaut (les processus ne sont pas séparés). | ||
| - | |||
| - | ---- | ||
| - | |||
| - | ===== Windows XP soudainement lent ! ===== | ||
| - | [[http:// | ||
| - | |||
| - | Astuce performances système : **Windows XP soudainement lent !** | ||
| - | Il peut arriver que Windows devienne lent alors qu’il fonctionnait très bien auparavant. Avant de vouloir réinstaller votre OS, essayez d’appliquer cette astuce ! | ||
| - | |||
| - | Attention ! L’utilisation de cette astuce peut dans certains cas créer un plantage complet de la machine ! A utiliser donc en dernier recours avant de passer par un reformatage ! | ||
| - | |||
| - | Suite à plusieurs erreurs d' | ||
| - | |||
| - | Pour cela, vous devez effectuer la manipulation suivante : | ||
| - | |||
| - | Faire un clic droit sur le Poste de Travail, allez dans Propriétés, | ||
| - | Redémarrer ensuite votre machine. | ||
| - | |||
| - | Ainsi, Windows reconnaîtra à nouveau l’IDE principal en Ultra DMA et non plus en PIO, votre PC retrouvera alors sa vitesse d’exécution d’origine ! | ||
| - | |||
| - | ---- | ||
| - | |||
| - | |||
| - | ===== Démarrer XP plus vite ===== | ||
| - | |||
| - | cf. [[http:// | ||
| - | |||
| - | Astuce performances système : **Démarrer XP plus vite !** | ||
| - | |||
| - | Par défaut, XP défragmente les fichiers du boot (utilisés lors du démarrage). Cela permet théoriquement un démarrage plus rapide. Pourtant, si vous avez recours à une défragmentation régulière de vos disques, on se rend compte que cette défragmentation vous fait perdre de précieuses secondes à chaque démarrage. | ||
| - | |||
| - | Cette astuce, pourtant assez connue, peut-être mal utilisée. En effet, nombreuses sont les personnes qui préfèrent activer la défragmentation du boot. Pourtant, si vous utilisez régulièrement un défragmenteur, | ||
| - | |||
| - | Ouvrez regedit (menu Démarrer, Exécuter... et taper regedit) | ||
| - | Allez à HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction | ||
| - | Modifiez la valeur de la clé Enable à N (Y par défaut) | ||
| - | Redémarrer. | ||
| - | |||
| - | |||
| - | Attention : si vous ne pratiquez pas de défragmentation régulière comme indiqué plus haut, il est conseillé de laisser Enable à Y. | ||
| - | ---- | ||
| - | |||
| - | * [[http:// | ||
| - | * [[http:// | ||
| - | * [[http:// | ||
| - | * [[http:// | ||
| - | |||
| ====== **__Firefox__** ====== | ====== **__Firefox__** ====== | ||
| Line 462: | Line 47: | ||
| F5-Filter-" | F5-Filter-" | ||
| - | ====== **__MS Office__** ====== | ||
| - | * [[http:// | ||
| - | < | ||
| - | - Cliquer sur le bouton rond ( en haut à droite ) | ||
| - | - Cliquer sur " | ||
| - | - Cliquer sur l' | ||
| - | - Descendre dans la fenêtre jusqu' | ||
| - | - Décocher " | ||
| - | </ | ||
kb.1304437862.txt.gz · Last modified: by atl
