<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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>Technology forum Murali Web World | ReactJS &#8211; React javascript NodeJS discussions and coding techniques | Activity</title>
	<link>https://www.muraliwebworld.com/groups/reactjs-react-javascript-nodejs-discussions-and-coding-techniques/</link>
	<atom:link href="https://www.muraliwebworld.com/groups/reactjs-react-javascript-nodejs-discussions-and-coding-techniques/feed/" rel="self" type="application/rss+xml" />
	<description>Activity feed for the group, ReactJS &#8211; React javascript NodeJS discussions and coding techniques.</description>
	<lastBuildDate>Wed, 22 Apr 2026 04:39:54 +0530</lastBuildDate>
	<generator>https://buddypress.org/?v=</generator>
	<language>en-US</language>
	<ttl>30</ttl>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>2</sy:updateFrequency>
	
						<item>
				<guid isPermaLink="false">31a5791d768f229ad087146980212b67</guid>
				<title>Muralidharan started the topic ReactJS expressjs server redirect domain from http to https://www in the forum ReactJS - React javascript NodeJS discussions and coding techniques</title>
				<link>https://www.muraliwebworld.com/groups/reactjs-react-javascript-nodejs-discussions-and-coding-techniques/forum/topic/reactjs-expressjs-server-redirect-domain-from-http-to-https-www/</link>
				<pubDate>Thu, 16 Dec 2021 16:13:34 +0530</pubDate>

									<content:encoded><![CDATA[<p>To redirect domain from plain http or https:// to <a href="https://www" rel="nofollow ugc">https://www</a></p>
<p>Below code is in REACTJS express server file</p>
<p><code>app.all(/.*/, function(req, res, next) {<br />
  var host = req.header(&quot;host&quot;);<br />
  if (host.match(/^www..*/i)) {<br />
    next();<br />
  } else {<br />
    res.redirect(301, &quot;http://www.&quot; + host + req.path);<br />
  }<br />
});</code></p>
]]></content:encoded>
				
									<slash:comments>0</slash:comments>
				
							</item>
		
	</channel>
</rss>