<?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>php redirect | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/php-redirect/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sat, 10 Dec 2022 05:29:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>How to redirect page using PHP with values?</title>
		<link>https://studentprojects.in/software-development/php-mysql/php-tutorial/redirect-page-php-values/</link>
					<comments>https://studentprojects.in/software-development/php-mysql/php-tutorial/redirect-page-php-values/#comments</comments>
		
		<dc:creator><![CDATA[Peter Vegas]]></dc:creator>
		<pubDate>Mon, 02 Jan 2012 10:44:07 +0000</pubDate>
				<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[php redirect]]></category>
		<category><![CDATA[html redirect]]></category>
		<category><![CDATA[header redirect]]></category>
		<category><![CDATA[send vlues to redirect]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=2515</guid>

					<description><![CDATA[<p>Here is the code for simple PHP page redirect. The search engine friendly way of redirecting is the 301 redirect. Note that if you do not include the first Header line above, the redirect still works. But, instead of a 301 redirect, now it becomes a 302 (temporary) redirect. Now if you want to redirect</p>
<p>The post <a href="https://studentprojects.in/software-development/php-mysql/php-tutorial/redirect-page-php-values/">How to redirect page using PHP with values?</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Here is the code for simple PHP page redirect. The search engine friendly way of redirecting is the 301 redirect.</p>
<pre lang="php" line="1"><!--?php
	Header("HTTP/1.1 301 Moved Permanently"); 
	header( 'Location: http://www.yoursite.com/page.html' ) ;
?-->
</pre>
<p>Note that if you do not include the first Header line above, the redirect still works. But, instead of a 301 redirect, now it becomes a 302 (temporary) redirect.</p>
<p>Now if you want to redirect to perticluer user page then you need to include user id in the url. Here is the code:</p>
<pre lang="php" line="1"><!--?php
	header("Location: userpage.php?id=".$userId);
?-->
</pre><p>The post <a href="https://studentprojects.in/software-development/php-mysql/php-tutorial/redirect-page-php-values/">How to redirect page using PHP with values?</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/php-mysql/php-tutorial/redirect-page-php-values/feed/</wfw:commentRss>
			<slash:comments>68</slash:comments>
		
		
			</item>
	</channel>
</rss>
