एक यूआरएल के लिए www जोड़ना
From Joomla! Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
कैसे मैं अपने सभी जूमला में एक उपसर्ग के रूप में www मिलता है! साइटों?
अपने <टीटी> .htaccess का </ टीटी> फ़ाइल के लिए निम्न जोड़ें:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
एक और अधिक पूर्ण समाधान एक ही समय में कई अन्य मुद्दों कनानिकल फिक्सिंग:
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]
श्रेणी: पूछे जाने वाले प्रश्न
श्रेणी: स्थापना
श्रेणी: सर्वर विन्यास