Joomla! Discussion Forums



It is currently Mon Nov 23, 2009 7:53 pm (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 408 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 14  Next
Author Message
Posted: Sat Aug 26, 2006 6:18 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Jan 25, 2006 5:43 am
Posts: 5
where is the link or pdf file of this Install Manual for Godaddy server? I looked but could not find it. thanks.


Top
  E-mail  
 
Posted: Thu Aug 31, 2006 6:13 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Nov 14, 2005 5:41 pm
Posts: 11
I run multiple subdomains on Godaddy.com - They recently made a change where the creation of the subdomain will now properly set the correct "root" for the subdomain - this was broken for my in 6/2006.

My Htaccess file looks like this. I install joomla into subdirectories under the root, and rely on godaddys parent rules to set the initial directory:

Options FollowSymlinks

# turn mod_rewrite on
RewriteEngine On
RewriteBase /


# If request is for yourdomain.com
RewriteCond %{HTTP_HOST} ^yourmaindomain\.com
# Then redirect to http://www.yourdomain.com
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]

# If request is for direct access to /dev subdirectory, redirect to dev.yourdomain.com
RewriteCond %{HTTP_HOST} ^(www\.)?yourmaindomain\.com
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /dev
# Then redirect to dev.yourdomain.com
RewriteRule ^dev(.*) http://dev.yourdomain.com$1 [R=301,L]

# If request is for direct access to /photos subdirectory, redirect to photos.yourdomain.com
RewriteCond %{HTTP_HOST} ^(www\.)?yourmaindomain\.com
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /photos/
# Then redirect to photos.yourdomain.com
RewriteRule ^photos(.*) http://photos.yourdomain.com$1 [R=301,L]

# If request is for direct access to /SUBDIRECTORYtest subdirectory, redirect to test.yourdomain.com
RewriteCond %{HTTP_HOST} ^(www\.)?yourmaindomain\.com
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /SUBDIRECTORYtest
# Then redirect to test.yourdomain.com
RewriteRule ^SUBDIRECTORYtest(.*) http://test.yourdomain.com$1 [R=301,L]

# If request is for direct access to /SUBDIRECTORYhist subdirectory, redirect to family.yourdomain.com
RewriteCond %{HTTP_HOST} ^(www\.)?yourmaindomain\.com
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /SUBDIRECTORYhist
# Then redirect to family.yourdomain.com
RewriteRule ^SUBDIRECTORYhist(.*) http://family.yourdomain.com$1 [R=301,L]

# If request is for direct access to /SUBDIRECTORYchat subdirectory, redirect to forums.yourdomain.com
RewriteCond %{HTTP_HOST} ^(www\.)?yourmaindomain\.com
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /SUBDIRECTORYchat
# Then redirect to family.yourdomain.com
RewriteRule ^SUBDIRECTORYchat(.*) http://forums.yourdomain.com$1 [R=301,L]


# Where to go for error documents - Note that the reference is from the re-written ROOT of the subdomain
# This means that dev.yourdomain.com errors look for /dev/errors/missing.html
# and http://www.yourdomain.com errors look for /errors/missing.html
ErrorDocument 404 /errors/missing.html

# Page to show for prohibited documents
ErrorDocument 403 /errors/missing.html

########## Begin Standard SEF Section
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End Standard SEF Section


########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End - 3rd Party SEF Section

# Ensure only only our domain is hot-linking images for domain
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.|photos\.|test\.|dev\.)?yourdomain.com(/)?.*$    [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ http://www.yourdomain.com/errors/theif.png [R,NC]

########## Begin - Rewrite rules to block out some common exploits
#                             
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a


Who is online

Users browsing this forum: leolll and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group