Page is a not externally linkable
galench - 12:57 pm on Mar 21, 2008 (gmt 0)
It`s necessary to add rule in to the htaccess file of addon_folder: #Redirecting from addon folder to example.com if request`s from http://example.com на example.com #Redirecting from subdomain (addon) - Unfortunaly, there`s some nuance: 2. If request to subfolder of addon_folder - But what code don`t give possibility to view addon folders content from main domain! [edited by: jdMorgan at 4:37 pm (utc) on Mar. 22, 2008]
Well i found some decision.
RewriteEngine on
#Redirecting from addon folder to example.com if request`s from http://www.example.com на example.com
RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
http://addon_folder.example.com на example.com
RewriteCond %{HTTP_HOST} ^addon_folder.example.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.addon_folder.example.com$
RewriteRule ^(.*)$ http://www.example.com [R=301,L]
1. If request from http://example.com/addon_folder -
without "/" in the end it redirects
http://example.com//home/example/public_html/addon_folder -
404 (page not found)
http://example.com/addon_folder/folder2 redirects
http://example.com/folder2/
[edit reason] de-linked [/edit]