Advertisement

Joomla SEO option with Godaddy

Need help with the Administration of your Joomla! site? Pop your questions in here.

Moderator: General Support Moderators

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.
Locked
User avatar
scrap2do
Joomla! Intern
Joomla! Intern
Posts: 82
Joined: Sun Sep 30, 2007 11:12 am
Contact:

Joomla SEO option with Godaddy

Post by scrap2do » Thu Nov 29, 2007 10:39 am

I have seen a few post about SEF and GoDaddy. The replies are for the most part are the same. "GoDaddy is bad, don't use GoDaddy" Well I say "fooy, balooy". For those of you that want to use cheap hosting and SEF I'm posting an htaccess file that works with SEF + GoDaddy. There are a few thing to keep in mind to make everything work.

GoDaddy uses a cache server for configuration files on shared hosting clients. You'll need to rename the file "htaccess.txt" to ".htaccess". After you rename the file wait about 1 hour before doing anything else. You only have to wait when you first create .htaccess Once it is created any change you make to it will be immediate. Let me say this one more time "Once .htaccess is created any change you make to it will be immediate".

Next in your Joomla control panel check your Global Configuration File and make sure "Search Engine Friendly URLs" is set to yes and "Dynamic Page Titles" is set to yes. That is Site -> Global Configuration ->SEO .. Yes,Yes.

Make sure you publish the SEF mambot.

Last, your .htaccess file should look like this.

Code: Select all

##
# @version $Id: htaccess.txt 5975 2006-12-11 01:26:33Z robs $
# @package Joomla
# @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


#####################################################
#  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.
#
# Only use one of the two SEF sections that follow.  Lines that can be uncommented
# (and thus used) have only one #.  Lines with two #'s should not be uncommented
# In the section that you don't use, all lines should start with #
#
# For Standard SEF, use the standard SEF section.  You can comment out
# all of the RewriteCond lines and reduce your server's load if you
# don't have directories in your root named 'component' or 'content'
#
# If you are using a 3rd Party SEF or the Core SEF solution
# uncomment all of the lines in the '3rd Party or Core SEF' section
#
#####################################################

#####  SOLVING PROBLEMS WITH COMPONENT URL's that don't work #####
# SPECIAL NOTE FOR SMF USERS WHEN SMF IS INTEGRATED AND BRIDGED
# OR ANY SITUATION WHERE A COMPONENT's URL's AREN't WORKING
#
# In both the 'Standard SEF', and '3rd Party or Core SEF' sections the line:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# May need to be uncommented.  If you are running your Joomla!/Mambo from
# a subdirectory the name of the subdirectory will need to be inserted into this
# line.  For example, if your Joomla!/Mambo is in a subdirectory called '/test/',
# change this:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# to this:
# RewriteCond %{REQUEST_URI} ^(/test/component/option,com) [NC,OR] ##optional - see notes##
#
#####################################################


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

#
#  mod_rewrite in use

RewriteEngine On


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

# RewriteBase /


########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## 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 - Joomla! core 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



########## 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 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  tag in URL
RewriteCond %{QUERY_STRING} (\|%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

Hope this helps some of you.
Last edited by scrap2do on Thu Nov 29, 2007 11:49 am, edited 1 time in total.

Advertisement
User avatar
kenmcd
Joomla! Champion
Joomla! Champion
Posts: 5672
Joined: Thu Aug 18, 2005 2:09 am
Location: California
Contact:

Re: Joomla SEO option with Godaddy

Post by kenmcd » Thu Nov 29, 2007 10:54 am

That .htaccess file is broken.
Enable the Joomla core SEF section OR the 3rd-party SEF section.
Not pieces of both.

This broken file showed-up recently in another Joomla forum as the source of the problems.
██ LibreTraining

User avatar
scrap2do
Joomla! Intern
Joomla! Intern
Posts: 82
Joined: Sun Sep 30, 2007 11:12 am
Contact:

Re: Joomla SEO option with Godaddy

Post by scrap2do » Thu Nov 29, 2007 11:22 am

Thank you for your reply.

It may very well be a broken htaccess file. But, on GoDaddy it works great. Broken hosting provider + broken htaccess = Working site :)

User avatar
kenmcd
Joomla! Champion
Joomla! Champion
Posts: 5672
Joined: Thu Aug 18, 2005 2:09 am
Location: California
Contact:

Re: Joomla SEO option with Godaddy

Post by kenmcd » Thu Nov 29, 2007 11:31 am

It may work on your site with your installed components.
That is shear luck.
On many other sites it will break the site.
██ LibreTraining

rupantor
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun Jan 27, 2008 1:14 pm

Re: Joomla SEO option with Godaddy

Post by rupantor » Mon Mar 03, 2008 1:26 pm

Did what you told, also I did wait 18 hours still same condition.

My Hosting specs:
Godaddy Linux Hosting,
php Version : 5
mySQL : 5

How do I make the Joomla SEO work on godaddy.. any one please...

vdowsett
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sat Mar 01, 2008 3:19 am

Re: Joomla SEO option with Godaddy

Post by vdowsett » Thu Mar 20, 2008 8:17 pm

Hi

Thanks for the .htaccess code. I entered onto one of my sites, and the SEO worked great. However when I tried the exact same code on a different hosting site, it didn't work. This one has several subdomains, and I edited the code within the subdomains. Does that change what the code should look like?

Thanks

Vicky

rupantor
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun Jan 27, 2008 1:14 pm

Re: Joomla SEO option with Godaddy

Post by rupantor » Mon Mar 31, 2008 12:01 am

Hii Vicky,

Some hosts have problem with the following bit,

Code: Select all

##  Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
You may try commenting this line.

Code: Select all

##  Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
Also you need to have a look on

Code: Select all

# RewriteBase /
By default, if you joomla installation resides at the root , then this should look like

Code: Select all

RewriteBase /
If you have any subdomain, the line should be like this

Code: Select all

RewriteBase /subdomain_folder_name
Also, if you are using any SEF extension , then it is better to comment this part

Code: Select all

########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## 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 - Joomla! core SEF Section
However, if you prefer not to use any thirdparty extension , you may prefer to comment the 3rd party extension bits.

I have used GD hosting for long time but unfortunately it never worked with me. I moved onto a new host and this alterations work absolutely fine.

Hope these help you.

vdowsett
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sat Mar 01, 2008 3:19 am

Re: Joomla SEO option with Godaddy

Post by vdowsett » Mon Mar 31, 2008 12:21 am

Thanks for the helpful reply!!! I actually passed the problem on to my husband who is a programmer (I'm more a designer). He has managed to fix it for me.

draftzero
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Wed Apr 16, 2008 2:19 am

Re: Joomla SEO option with Godaddy

Post by draftzero » Wed Apr 30, 2008 3:13 am

Thanks worked like a charm for me!
Linux
PHP 5
MySQL 5

I changed .htaccess waited for about a day and tried some other code found on this forum, didn't work... ran into this and SHABAM! broken hosting + broken file = WORKING HTACCESS WOOT!

abrock
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed May 28, 2008 1:49 am
Location: NC

Re: Joomla SEO option with Godaddy

Post by abrock » Fri May 30, 2008 11:12 pm

Ok I did what you mentioned and this didnt work for me. Im not using any third party extensions and Im seeing now that my urls look nice no more numbers. www.vastaffinggroup.com Im posting my .htaccess in case Ive done this wrong any help would be very appreciated.

Thanks!

##
# @version $Id: htaccess.txt 5975 2006-12-11 01:26:33Z robs $
# @package Joomla
# @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


#####################################################
# 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.
#
# Only use one of the two SEF sections that follow. Lines that can be uncommented
# (and thus used) have only one #. Lines with two #'s should not be uncommented
# In the section that you don't use, all lines should start with #
#
# For Standard SEF, use the standard SEF section. You can comment out
# all of the RewriteCond lines and reduce your server's load if you
# don't have directories in your root named 'component' or 'content'
#
# If you are using a 3rd Party SEF or the Core SEF solution
# uncomment all of the lines in the '3rd Party or Core SEF' section
#
#####################################################

##### SOLVING PROBLEMS WITH COMPONENT URL's that don't work #####
# SPECIAL NOTE FOR SMF USERS WHEN SMF IS INTEGRATED AND BRIDGED
# OR ANY SITUATION WHERE A COMPONENT's URL's AREN't WORKING
#
# In both the 'Standard SEF', and '3rd Party or Core SEF' sections the line:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# May need to be uncommented. If you are running your Joomla!/Mambo from
# a subdirectory the name of the subdirectory will need to be inserted into this
# line. For example, if your Joomla!/Mambo is in a subdirectory called '/test/',
# change this:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# to this:
# RewriteCond %{REQUEST_URI} ^(/test/component/option,com) [NC,OR] ##optional - see notes##
#
#####################################################


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

#
# mod_rewrite in use

RewriteEngine On


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

RewriteBase /


########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## 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 - Joomla! core 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



########## 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 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 tag in URL
RewriteCond %{QUERY_STRING} (\|%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

[quote][/quote]

Advertisement

Locked

Return to “Administration - 1.0.x”