This is an old revision of the document!
Table of Contents
**__General Web__**
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 “301” is interpreted as “moved permanently”.
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 'Apply'
ColdFusion Redirect
<.cfheader statuscode="301" statustext="Moved permanently"> <.cfheader name="Location" value="http://www.new-url.com">
PHP Redirect
<? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.new-url.com" ); ?>
ASP Redirect
<%@ Language=VBScript %> <% Response.Status="301 Moved Permanently" Response.AddHeader "Location","http://www.new-url.com/" %>
ASP .NET Redirect
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.new-url.com");
}
</script>
JSP (Java) Redirect
<% response.setStatus(301); response.setHeader( "Location", "http://www.new-url.com/" ); response.setHeader( "Connection", "close" ); %>
CGI PERL Redirect
$q = new CGI;
print $q->redirect("http://www.new-url.com/");
Ruby on Rails Redirect
def old_action headers["Status"] = "301 Moved Permanently" redirect_to "http://www.new-url.com/" 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://www.newdomain.com/$1 [R=301,L]
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://www.domain.com/$1 [r=301,nc]
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', if your site is hosted on a Linux Server and 'IIS Redirect', if your site is hosted on a Windows Server.
Source: http://www.webconfs.com/how-to-redirect-a-webpage.php
**__Dokuwiki FAQ__**
- plugin:wysiwyg [DokuWiki]
- faq:toolbar [DokuWiki]
- update_check [DokuWiki]
**__Apache SSL Win32__**
To install, follow these steps:
- Download apache_2.2.4-win32-x86-no_ssl.msi:
wget http://www.apache.org/dist/httpd/binaries/win32/apache_2.2.4-win32-x86-no_ssl.msi
- Install Apache:
msiexec /i apache_2.2.4-win32-x86-no_ssl.msi
- Stop Apache:
net stop Apache2
- Uninstall the Apache service:
"C:\Program Files\Apache Group\Apache2\bin\httpd" -k uninstall
- Kill the ApacheMonitor:
taskkill /im apachemonitor.exe
- Download apache-2.2.4_openssl-0.9.8e.zip.
- Unzip into the directory you installed Apache in:
unzip -o -d "c:/Program Files/Apache Group" apache-2.2.4_openssl-0.9.8e.zip
- If you are using Cygwin's unzip, and are using NTFS, grant the SYSTEM user full rights to the Apache2 directory, as unzip may have removed them:
cacls "C:\Program Files\Apache Group\Apache2" /E /G SYSTEM:F /T
- Install Apache as a service with SSL support:
"C:\Program Files\Apache Group\Apache2\bin\htttd" -D SSL -k install
- And finally, start Apache:
net start Apache2
To verify it's working, browse to https://127.0.0.1/. Since this is a self signed certificate, you will receive a message about an unknown certificate authority. Simply click 'Ok' and you should see Apache's standard welcome page.
Note: The .so files are actually Win32 DLL executables, they just have the standard Linux file extension.
- Running Apache as a Service - httpd -k install -n “MyServiceName” -f “c:\files\my.conf” ; httpd -k uninstall -n “MyServiceName” ; httpd -n “MyServiceName” -t ; httpd -k start|stop|shutdown|restart
- SSLSessionCache Directive - # none|nonenotnull|dbm:/path/to/datafile|shm:/path/to/datafile[(size)]|dc:UNIX:/path/to/socket
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://www.domain.de/folder/$1 [L,R]
**__Wordpress & Troubleshooting__**
Cas de MAJ bloqué avec le message suivant:
Téléchargement de la mise à jour depuis http://fr.wordpress.org/wordpress-3.1.2-fr_FR.zip… Décompression de la mise à jour…
Note: Cas rencontré avec XAMPP 1.7.3 en localhost
Il aurait suffi de mettre un temps d'execution plus long (par defaut dans mon cas, c'etait 60), et eventuellement la taille des fichiers a telecharger aussi, dans .htaccess a la racine du site web comme suit:
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__**
**__Windows Vista__**
- Enable Remote Desktop in Windows Vista Home Premium | Welcome to Andrewblock.net - Learn how to enable remote desktop in Windows Vista Home Premium with a simple registry file.
- enable remote desktop on Windows Vista Home Premium | Welcome to Andrewblock.net - How to enable remote desktop connection on vista home premium x64 & x86
**__Windows XP__**
WINDOWS XP SHUTDOWN & RESTART TROUBLESHOOTING
- 4 Ways To Shutdown/Restart The System At A Specific Time In Windows | Technize - Be Techdated
Shares Access Denied & IRPStackSize
shares problems can be solved by the method of “increase the IRPStackSize value in the registry” if your event viewer mentions it!
- Run regedit.
- Navigate to the following key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters
- 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. IMPORTANT: Type "IRPStackSize" exactly as it is displayed because the value name is case-sensitive. - 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
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
- “Start”, then “Run”
- Type “regedit” without the quotes, click “OK”
- Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentC ontrolSet\Services\HidServ\Parameters
- In the right pane, right-click in the blank area and select “New” and “Expandable String Value”
- Name the value “ServiceDll” without the quotes. Note: it is spelled S E R V I C E D L L but you enter it exactly as shown between the quotation marks.
- Double-click the new entry and enter “%SystemRoot%\System32\hidserv.dll” without quotes as its value
- 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 | “Copy”:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HidServ\Parameters] "ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\ 00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\ 68,00,69,00,64,00,73,00,65,00,72,00,76,00,2e,00,64,00,6c,00,6c,00,00,00
Open a new Notepad session. Click Format and make certain that Word Wrap is disabled. Do a Right-click | “Paste” of the code box contents. Click File, click “Save as…” and enter as the filename (including quotation marks): “c:\fix_regs.reg”.
Exit Notepad. Double click your new file, fix_regs.reg[/b] and agree to the registry merge when asked. Reboot.
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 Group Policy Editor has a security option to clear the pagefile at system shutdown. The same setting also forces the hibernation file to be wiped at shutdown. These processes take long enough that users may think that shutdown has hung. To change the setting, click Start | Run, type GPEDIT.MSC, click OK. Drill down to Computer Configuration | Windows Settings | Security Settings | Local Policies | Security Options. In the right pane, find “Shutdown: Clear virtual memory pagefile.” NOTE: Since someone actually has to have set this policy, the problem will be pretty rare, but is worth mentioning. However, Forum participant “roadrunner” reported that the personal security app Privacy Eraser automatically enables “Clear virtual memory pagefile,” and, therefore, may be the cause of a slow shutdown.
- The Gear Software Security Service (GEARSEC.EXE), which enables iTunes for Windows to read and burn CDs, has been reported by many users to cause Windows XP to hang at the “Windows is shutting down” screen for as long as 20-30 seconds. WORK-AROUND: Stop the service prior to shutdown. One way to to this (suggested by “Thornburgh”) is to create a batch file with the one line net stop gearsecurity. You can either launch this batch file manually, or (in Win XP Professional) use GPEDIT.MSC) to specify this batch file as the shutdown script (under Computer Configuration | Windows Settings | Scripts | Shutdown). Gear Software’s forum has a thread on this issue here. (Tip from correspondent “Andy”)
- 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, don’t forget to check any logoff scripts you are pushing. These can be a source of slow or hanging shutdown processes. Site visitor Tony Barkdull, for example, found that an enforced logoff script caused show shutdown for laptops that were off-site. He solved it be creating a logoff script on the local machines that deletes the Active Directory logoff group policy after it runs so that the logoff scripts are absent while a user is off-site, but are repopulated when they return. — A related cause of slow shutdowns is offline synchronization of data, which is increasingly common with mobile computing, but is usually much more obvious to the end-user.
How to change Terminal Server's listening port
How to change Terminal Server's listening port
SUMMARY 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, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
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 "PortNumber" subkey and notice the value of 00000D3D, hex for (3389). Modify the port number in Hex and save the new value.
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 "PortNumber" subkey and notice the value of 00000D3D, hex for (3389). Modify the port number in Hex and save the new value.
NOTE: Because the use of alternate ports has not been fully implemented for Terminal Server 4.0, support will be provided as "reasonable effort" only, and Microsoft may require you to set the port back to 3389, if any problems occur.
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, on the File menu, click Export. Save it as name.cns. 4. Edit the .cns file using Notepad changing "Server Port=3389" to "Server Port=xxxx" where xxxx is the new port that you specified on Terminal Server. 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
Supprimer le dossier de partage du poste de travail A l'installation de Windows Live Messenger, un “dossier de partage” est créé dans le poste de travail, ce qui permet de partager plusieurs documents avec certains contacts. Pour ceux qui n'utilisent pas cette fonction et qui veulent supprimer cet élément du poste de travail, voici la marche à suivre. Supprimer le dossier de partage
- Faites Démarrer ⇒ Exécuter et tapez regsvr32 -u “%ProgramFiles%\MSN Messenger\fsshext.dll”
- Si cela ne fonctionne pas, allez voir dans le répertoire d'installation de Windows Live Messenger et relevez le nom du fichier de la forme “fsshext.8.x.xxxx.xx.dll”.
o Même opération : Démarrer ⇒ Exécuter et tapez regsvr32 -u “%ProgramFiles%\MSN Messenger\fsshext.8.x.xxxx.xx.dll” (en remplaçant par le nom du fichier que vous avez relevé).
Le dossier a disparu ! Rétablir le dossier de partage
- Faites Démarrer ⇒ Exécuter et tapez regsvr32 -c “%ProgramFiles%\MSN Messenger\fsshext.8.x.xxxx.xx.dll” (en remplaçant par le nom du fichier que vous avez relevé, voir ci-dessus).
Le dossier réapparait alors dans le poste de travail.
L'explorateur plus stable !
Astuce performances système : L'explorateur plus stable ! Notre cher Windows gère l’explorateur, le bureau et la barre des tâches au sein d’un seul processus multithreads. Lorsque l’explorateur se fige, c’est alors l’ensemble de la machine qui trinque. Cette astuce permet de lancer l’explorateur au sein d’un autre processus, le bureau et la barre des tâches étant gérés eux via un second processus. Cela permet une plus grande stabilité de la machine, le plantage de l’explorateur ne figeant pas la totalité de l’OS.
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 !
Windows XP soudainement lent !
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'écritures sur le disque sous XP, il se peut qu'au redémarrage suivant, Windows reconnaisse l'IDE principal en mode PIO (au lieu Ultra DMA). Il faut alors désinstaller le pilote dans le gestionnaire de périphérique et redémarrer la machine.
Pour cela, vous devez effectuer la manipulation suivante :
Faire un clic droit sur le Poste de Travail, allez dans Propriétés, Matériel, Gestionnaire de périphériques, Contrôleurs ATA/ATAPI IDE. Faire ensuite un clic droit sur Canal IDE Principal et choisissez Désinstaller. 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
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, la défragmentation du boot ralentie alors le démarrage (elle est inutile). La désactivation de cette défragmentation va donc accélérer le démarrage de Windows XP.
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.
**__Firefox__**
- http://howto.helpero.com/howto/Reduce-Firefox-Memory-Usage_4.html - How To Reduce Firefox Memory Usage
- Editing Configuration Files - about:config
- Show Close Tab Button On All Tabs At All Times
You might want to try this: Keep Tab Close "X" Buttons Visible: 1. Type about:config in the Firefox address bar. Hit Enter. 2. Go to "browser.tabs.tabClipWidth" in the list. 3. Right click, select "Modify", change to desired setting number. 4. Change setting to 1, default is 140. Adjust Tab Width: 1. Type about:config in the Firefox address bar. Hit Enter. 2. Go to "browser.tabs.tabMinWidth" in the list. 3. Right click, select "Modify", change to desired setting number. 4. Recommend setting of 0, default is 100.
**__Thunderbird__**
- Privacy basics - Thunderbird - “Allow remote images in HTML mail” option, re-disable
- Thunderbird portable - importing settings
Copy the entire CONTENTS of your Thunderbird profile folder (that is the folder named [SERIES OF RANDOM CHARACTERS].default) into the profile folder created by your portable installation on the USB stick, rather than just the Mail folder. Or alternatively, copy the entire Profile folder, not just the contents, and edit the Path statement profiles.ini in the Thunderbird profile folder on the USB stick , or copy the profiles.ini from the Thunderbird folder of the Win 7 PC into the Thunderbird folder on the USB stick. The first method is the easiest because you don't have to mess with the profiles.ini on the USB stick which will already be set to point to the profile folder created by the USB installation, of which you have replaced the contents. The important thing is to not copy the folder itself, but just the contents. I haven't a clue how you can get your MSOutlook settings on the USB stick. Dave Pyles
Note: destination folder must be ThunderbirdPortable\Data\profile to be accurate
**__GOM Player__**
- ...black screen - Try changing the filter used.
F5-Filter-“Use Windows Media source filter” : Windows Media source filter has better compatibility.
**__MS Office__**
- Proplème d'ouverture de fichiers excel [Résolu] - Ouverture impossible de fichier par double-click.
- Cliquer sur le bouton rond ( en haut à droite ) - Cliquer sur "Option excel" (en bas à droite du volet roulant ) - Cliquer sur l'onglet "Options avancées" - Descendre dans la fenêtre jusqu'au chapitre "Général" - Décocher "Ignorer les autres applications qui utilisent l'échange dynamique de données
