User Tools

Site Tools


kb

This is an old revision of the document!


**__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__**

**__Apache SSL Win32__**

To install, follow these steps:

  1. 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
  2. Install Apache:
    msiexec /i apache_2.2.4-win32-x86-no_ssl.msi
  3. Stop Apache:
    net stop Apache2
  4. Uninstall the Apache service:
    "C:\Program Files\Apache Group\Apache2\bin\httpd" -k uninstall
  5. Kill the ApacheMonitor:
    taskkill /im apachemonitor.exe
  6. Download apache-2.2.4_openssl-0.9.8e.zip.
  7. 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
  8. 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
  9. Install Apache as a service with SSL support:
    "C:\Program Files\Apache Group\Apache2\bin\htttd" -D SSL -k install
  10. 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
    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

**__Firefox__**

  • 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__**

F5-Filter-“Use Windows Media source filter” : Windows Media source filter has better compatibility.

**__MS Office__**

- 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 
kb.1385053596.txt.gz · Last modified: by atl