Difference between revisions of "Adding www to a url/hi"

From Joomla! Documentation

(Created page with "== कैसे मैं अपने सभी जूमला में एक उपसर्ग के रूप में www मिलता है! साइटों? ==")
(Created page with "अपने <टीटी> .htaccess का </ टीटी> फ़ाइल के लिए निम्न जोड़ें:")
Line 2: Line 2:
 
== कैसे मैं अपने सभी जूमला में एक उपसर्ग के रूप में www मिलता है! साइटों? ==
 
== कैसे मैं अपने सभी जूमला में एक उपसर्ग के रूप में www मिलता है! साइटों? ==
  
Add the following to your <tt>.htaccess</tt> file:
+
अपने <टीटी> .htaccess का </ टीटी> फ़ाइल के लिए निम्न जोड़ें:
  
 
<source lang="Apache">
 
<source lang="Apache">

Revision as of 01:13, 1 February 2017

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎italiano • ‎português do Brasil • ‎فارسی • ‎हिन्दी • ‎অসমীয়া • ‎বাংলা • ‎中文(台灣)‎ • ‎中文(简体)‎

कैसे मैं अपने सभी जूमला में एक उपसर्ग के रूप में www मिलता है! साइटों?

अपने <टीटी> .htaccess का </ टीटी> फ़ाइल के लिए निम्न जोड़ें:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

A more complete solution fixing several other canonicalisation issues at the same time:

RewriteEngine On
#
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.html?\ HTTP/
RewriteRule ^(([^/]+/)*)index\.html?$ http://www.example.com/$1 [R=301,L]
#
RewriteCond %{THE_REQUEST} !^POST
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteCond %{SERVER_PORT}>s ^(443>(s)|[0-9]+>s)$
RewriteRule ^(([^/]+/)*)index\.php$ http%2://www.example.com/$1 [R=301,L]
#
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]