kb
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| kb [2013/11/21 12:06] – 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:// | ||
| - | * [[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 | ||
| - | </ | ||
| - | |||
| - | |||
| ====== **__Firefox__** ====== | ====== **__Firefox__** ====== | ||
| Line 234: | 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.1385053596.txt.gz · Last modified: by atl
