The Joomla! Forum ™



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  [ 4 posts ] 
Author Message
PostPosted: Thu Mar 17, 2011 2:27 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Feb 15, 2011 12:47 am
Posts: 8
My story:
I have an Economy account with GoDaddy where in my root folder I've made 2 folders for 2 different webistes: first folder is joomla and the second one joomla166, in both of them I have installed Joomla1.6.
In order to put the websites online I had to do a 301 redirect in GoDaddy:
from http://www.website1.com to http://www.website1.com/joomla
and http://www.website2.com to http://www.website.com/joomla166
If I'm enabling SEF and mode_rewrite in the backend I have just to rename htaccess.txt to .htaccess without deleting # in front of RewriteBase /
If I'm deleting # it gives me an error when i access the links.
This is my final .htaccess that I'm using and SEF is working.
Code:
##
# @version      $Id: htaccess.txt 20196 2011-01-09 02:40:25Z ian $
# @package      Joomla
# @copyright   Copyright (C) 2005 - 2011 Open Source Matters. All rights reserved.
# @license      GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
##

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

## Mod_rewrite in use.

RewriteEngine On

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
## End - Rewrite rules to block out some common exploits.

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

# RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/component/) [OR]
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
## End - Joomla! core SEF Section.


I would like to get rid of the joomla or [b]joomla166 [/b ]tail ( http://www.website1.com/joomla or ww.website2.com/joomla166) but I can not.
Anybody can help me and tell me what I'm doing wrong? Is it because the Economy account can not host more then one webiste or there is something else.
Thank you.


Top
 Profile  
 
PostPosted: Wed Mar 30, 2011 4:23 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Mar 30, 2011 3:42 pm
Posts: 7
Location: France
I have a Godaddy account and I must say it is the first time I use this webserver.

My problem was a bit simpler as I just wanted to 301 redirect my www and my non-www domains.
I tried searching on google how to achieve this through the .htaccess file without any success.

I finally used the redirect option offered by godaddy directly on my webhosting management page. It did the trick. you can set your base url, the rewrite url as well as redirect options.

I hope this helped

_________________
***** Manual signatures are NOT allowed *****
Benneton Pierre
http://bennetonable.com
***** Manual signatures are NOT allowed *****


Top
 Profile  
 
PostPosted: Wed Mar 30, 2011 4:44 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Feb 15, 2011 12:47 am
Posts: 8
I have used the 301 redirect from godaddy but with this option I still can not get rid of the folder name where I've installed joomla 1.6 at the end of my domain name. so I still have www.domain.com/joomla
What type of account do you have? I have Economy account.


Top
 Profile  
 
PostPosted: Thu Mar 31, 2011 10:21 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Mar 30, 2011 3:42 pm
Posts: 7
Location: France
For the /joomla in your domain, i don't know what you could actually do about it if not renaming the folder, or uploading directly the joomla files in your server root. I'm sry I can't help you more on this one...

_________________
***** Manual signatures are NOT allowed *****
Benneton Pierre
http://bennetonable.com
***** Manual signatures are NOT allowed *****


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 



Who is online

Users browsing this forum: No registered users and 17 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® Forum Software © phpBB Group