﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ladysign Dev Blog &#187; accessibility</title>
	<atom:link href="http://www.ladysign-apps.com/blog/tag/accessibility/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ladysign-apps.com/blog</link>
	<description>Girls can code.</description>
	<lastBuildDate>Mon, 01 Feb 2010 09:44:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>4 Ways to redirect your websites</title>
		<link>http://www.ladysign-apps.com/blog/code/javascript/4-ways-to-redirect-your-websites/</link>
		<comments>http://www.ladysign-apps.com/blog/code/javascript/4-ways-to-redirect-your-websites/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 17:58:12 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[javascript redirect]]></category>
		<category><![CDATA[meta redirect]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[redirecting]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=805</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>4 Ways to redirect your website to another page or path.<br />
For this example I will use the website: http://www.domain.com<br />
L[......]</p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>4 Ways to redirect your website to another page or path.<br />
For this example I will use the website: http://www.domain.com<br />
Let&#8217;s say this site is build in the folder: <strong>/folder/</strong> we need a redirect from<br />
<strong>DOMAIN</strong> to <strong>DOMAIN/FOLDER</strong>. I will show you the ways how to do it. You can re-use my code, just use your own domain and folder paths!</p>
<p><strong>The easiest way:</strong><br />
Create in the root of your domain an index.html and use a meta-refresh tag in the <head> of your HTML.<br />
This way of redirecting is according to W3C not so nice, and it also will have a delay.<br />
You can set this delay, however I set it to 0.</p>
<pre class="brush: xml;">&lt;meta http-equiv=&quot;refresh&quot; content=&quot;0;URL=http://www.domain.com/folder/&quot; /&gt;</pre>
<p><strong>The accessible way:</strong><br />
Not so nice, but to most accessible way, is to just create an empty index.html with an hyperlink<br />
to your new folder.</p>
<pre class="brush: xml;">Oops, the page you are looking for, does not exist anymore.
&lt;a href=&quot;http://www.domain.com/folder&quot;&gt;Browse to the correct page by following this link&lt;/a&gt;.</pre>
<p><strong>The Javascript way:</strong><br />
A good way to use. However if Javascript is disabled in your browser your stuck on the page where this<br />
Javascript code is placed. (index.html in the root of your domain)</p>
<pre class="brush: jscript;">&lt;script type=&quot;text/javascript&quot;&gt;
/*&lt;![CDATA[*/
 window.location=&quot;http://www.sandranasicfans.eu/sandranasic/&quot;;
/*]]&gt;*/
&lt;/script&gt;</pre>
<p><strong>The server way:</strong><br />
This will work on Apache linux servers only.<br />
Create with notepad a file called: .htaccess with the below content. Place this file in root of your domain.<br />
Please note that on some servers you can not see this file with your FTP client. I found out that most of the time the webvariant of your hosted server (file manager), will show them.<br />
However, I think this is the best and fastest way of redirecting.</p>
<pre class="brush: jscript;">RewriteEngine on
rewriterule ^(.*)$ http://www.domain.com/folder/$1 [r=301,nc] </pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/javascript/4-ways-to-redirect-your-websites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
