<?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>Open Script Solution &#187; redirect</title>
	<atom:link href="http://www.openscriptsolution.com/tag/redirect/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openscriptsolution.com</link>
	<description>... where solutions for script programming are found ...</description>
	<lastBuildDate>Sun, 29 Aug 2010 10:35:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to Redirect to the Current ViewTicket Page After Client Logged In in osTicket v1.6 RC5</title>
		<link>http://www.openscriptsolution.com/2009/11/23/how-to-redirect-to-the-current-viewticket-page-after-client-logged-in-in-osticket-v1-6-rc5/</link>
		<comments>http://www.openscriptsolution.com/2009/11/23/how-to-redirect-to-the-current-viewticket-page-after-client-logged-in-in-osticket-v1-6-rc5/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 08:07:47 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[osTicket]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[ticket]]></category>
		<category><![CDATA[viewticket]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=905</guid>
		<description><![CDATA[When your client successfully logged in to the osTicket in order to check the ticket status, then the next default page that shown up is the ticket list page. This will bother your client if they have had so many tickets in that list. This modification will redirect your client to the current viewticket page, [...]]]></description>
			<content:encoded><![CDATA[<p>When your client successfully logged in to the osTicket in order to check the ticket status, then the next default page that shown up is the ticket list page. This will bother your client if they have had so many tickets in that list. This modification will redirect your client to the current viewticket page, right after they logged in. This will be helpful for them to check the current ticket easily and quickly. <span id="more-905"></span></p>
<p>Open your <strong>login.php</strong> file, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>65
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">            <span style="color: #339933;">@</span><span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Location: tickets.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>65
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">            <span style="color: #339933;">@</span><span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Location: tickets.php?id=&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$ticketID</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/11/23/how-to-redirect-to-the-current-viewticket-page-after-client-logged-in-in-osticket-v1-6-rc5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using Subdomain, The Redirecting Script From URL Without www to www Will Not be Useful</title>
		<link>http://www.openscriptsolution.com/2009/11/22/using-subdomain-the-redirecting-script-from-url-without-www-to-www-will-not-be-useful/</link>
		<comments>http://www.openscriptsolution.com/2009/11/22/using-subdomain-the-redirecting-script-from-url-without-www-to-www-will-not-be-useful/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 15:32:59 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[prefix]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[subdomain]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=900</guid>
		<description><![CDATA[If you have ever read my article Redirecting URL Without www to URL With www Using .htaccess File regarding how to redirect the URL of a website from its address that being typed by visitor without the prefix www become the address with prefix www, then the redirecting script will not be useful at all. [...]]]></description>
			<content:encoded><![CDATA[<p>If you have ever read my article <a href="http://www.openscriptsolution.com/2009/10/17/redirecting-url-without-www-to-url-with-www-using-htaccess-file/">Redirecting URL Without www to URL With www Using .htaccess File</a> regarding how to redirect the URL of a website from its address that being typed by visitor without the prefix www become the address with prefix www, then the redirecting script will not be useful at all. For example, your main website domain is <strong>mydomain.com</strong>, then by using that redirect script in that article, if you have subdomain, for instance, <strong>mysubdomain.mydomain.com</strong> which this <strong>mysubdomain</strong> sub directory will be located under the root of your <strong>mydomain.com</strong>, then your URL will be converted to: <strong>http://www.mydomain.com/mysubdomain/</strong>. Of course, we do not expect this condition happened, right? So, how is the solution? <span id="more-900"></span></p>
<p>Well, if you use the redirect script which we have discussed in that article above, you should remove it from your <strong>.htaccess</strong> file in order your URL will be displayed properly become http://mysubdomain.mydomain.com. In the other words, since you used the subdomain, you have to reconsider about the using of that redirect script, if you do not want the URL of your subdomain changed as we mentioned above.</p>
<p>I discovered about this behavior when I created a subdomain for my another website. I hope this information will be useful for you.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/11/22/using-subdomain-the-redirecting-script-from-url-without-www-to-www-will-not-be-useful/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Redirecting URL Without www to URL With www Using .htaccess File</title>
		<link>http://www.openscriptsolution.com/2009/10/17/redirecting-url-without-www-to-url-with-www-using-htaccess-file/</link>
		<comments>http://www.openscriptsolution.com/2009/10/17/redirecting-url-without-www-to-url-with-www-using-htaccess-file/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 05:36:07 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[consistency]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[HTTP_POST]]></category>
		<category><![CDATA[IfModule]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[prefix]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[RewriteBase]]></category>
		<category><![CDATA[RewriteCond]]></category>
		<category><![CDATA[RewriteEngine]]></category>
		<category><![CDATA[RewriteRule]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[visitor]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=610</guid>
		<description><![CDATA[Today I learnt something new again about how to redirect my website if the visitors type in their browser such as this address: http://openscriptsolution.com (without prefix www.) then the browser will be automatically redirected it to the http://www.openscriptsolution.com (with prefix www.). This is very important for those of you who have the website, since you [...]]]></description>
			<content:encoded><![CDATA[<p>Today I learnt something new again about how to redirect my website if the visitors type in their browser such as this address: http://openscriptsolution.com (without prefix www.) then the browser will be automatically redirected it to the http://www.openscriptsolution.com (with prefix www.). This is very important for those of you who have the website, since you have to decide which URL that you will use for the consistency of your URL. In addition, Google loves the consistency of the URL that we used for our website. That&#8217;s what I have heard and known from Internet. So, here is the code how you can do that for your website by using .htaccess file. <span id="more-610"></span></p>
<ol>
<li>
Open your <strong>.htaccess</strong> file that located inside your web root directory, and then add this following code into that file:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.openscriptsolution\.com [NC]
RewriteRule ^(.*)$ http://www.openscriptsolution.com/$1 [L,R=301]
&lt;/IfModule&gt;</pre></div></div>

</li>
<li>
Now when your visitors type http://openscriptsolution.com in their browser, then it will be automatically redirected it to the address: http://www.openscriptsolution.com.
</li>
</ol>
<p>Hopefully this will be helpful for you.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/10/17/redirecting-url-without-www-to-url-with-www-using-htaccess-file/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Auto Redirect From The Old URL to The New URL of My Website</title>
		<link>http://www.openscriptsolution.com/2009/10/04/auto-redirect-from-the-old-url-to-the-new-url-of-my-website/</link>
		<comments>http://www.openscriptsolution.com/2009/10/04/auto-redirect-from-the-old-url-to-the-new-url-of-my-website/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 01:23:38 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[migrate]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[old]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=493</guid>
		<description><![CDATA[I was migrating my articles from my old website which not using WordPress to the new one that using WordPress. Just for your information, the domain of that my website was not changed. Only the URL of all my articles on the old website that become being changed on my new website, and with the [...]]]></description>
			<content:encoded><![CDATA[<p>I was migrating my articles from my old website which not using WordPress to the new one that using WordPress. Just for your information, the domain of that my website was not changed. Only the URL of all my articles on the old website that become being changed on my new website, and with the new structure, indeed. Then I found the technique how to redirect from the old URL to the new URL by optimizing the .htaccess file. The following code will show you how you can do this if you encounter the same problem some other time. <span id="more-493"></span></p>
<p>Simply add this following code to your <strong>.htaccess</strong> file that located in your web root directory (adjust the URL with yours):</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">redirect 301 /old/old-permalink/ http://www.yourdomain/new-permalink</pre></div></div>

<p>Be sure not to add &#8220;http://www.yourdomain&#8221; to the first part of the statement &#8211; just put the path from the top level of your site to the page. Also ensure that you leave a single space between these elements:</p>
<p><strong>redirect 301</strong> (the instruction that the page has moved)</p>
<p><strong>/old/old-permalink/</strong> (the original folder path and file name)</p>
<p><strong>http://www.yourdomain/new-permalink/</strong>  (new path and file name)</p>
<p>Hopefully this will be helpful for you.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/10/04/auto-redirect-from-the-old-url-to-the-new-url-of-my-website/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>