test
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • caclemor Friend
    #131664

    I am having issues with site not displaying if I set the Search Enging Friendly URL to Yes. Has anyone else had this issue?

    If I set it to Yes I get the page displayed as noted in the attachment labeled Gaia_Page_Error1.

    If I set both the Search Engine Friendly Urls to “Yes” and the Use mod_rewrite to “Yes” I get the page displayed as noted in the attachment labeled Gaia_Page_Error2.

    Site is http://www.wholelivingnaturals.com.

    Any help or suggestions would be greatly appreciated!:)

    Since I posted this I found an answer on the joomla.org forums, so here is the answer if anyone else has this issue:

    For anyone else who is facing this problem, please follow these steps:

    1. After uploading joomla 1.5 stable rename the htaccess.txt file in your root folder to .htaccess (dropping the .txt and placing a . in front of the htacess)
    2. Go to your backend–>Global configuration–>Use Apache mod_rewrite(Right Hand Top Corner) and enable it.

    mj1256 Friend
    #263504

    next steps,

    create a canonical 301 redirect in the htaccess file so the nonwww domain redirects to your www domain.

    simple syntax is

    RewriteCond %{HTTP_HOST} ^yourdomainname.com$ [NC]
    RewriteRule ^(.*)$ http://www.yourdomainname.com/$1 [R=301,L]

    you must do this as google will see your websites URLS

    yourdomain.com
    and
    http://www.yourdomain.com

    as two separate websites and give your domain a duplication penalty.

    not a good thing if you want to be ranked on the search engines

    Ågebror Friend
    #263514

    i have several domainnames pointing to the same site

    domainname1.com
    domainname2.com
    domainname3.com

    all leads to mydomainname.com

    what do i have to in that case?:confused:

    Thx Åge

    mj1256 Friend
    #263534

    make sure you are not using a meta refresh tag for the redirects. that will penalize your sites.

    you should be able to set up url forwarding with your domain registrar. The one I use is just a form, it will create the redirect for you.

    if your on a windows server, you can do it very easily in IIS, but your host would have to set it up as they typically do not give you that kind of access.

    You can set it up in cPanel, off hand I do not know where in cPanel

    or do it yourself;
    if on a linux server, you put a .htaccess file in the root of each of those sites
    ((do not have a website on those servers))
    all you need in the .htaccess file is

    Redirect 301 / http://www.example.com/

    replace example with your domain
    (again, there are many switches, this is just a simple one but it will work)

    this is SEF and you will not incurr any penalties

    caclemor Friend
    #263544

    I found another solution that fixed the problem. Simply change the htaccess.txt file name to .htaccess with no .txt on the end and make sure you place a period in front of the htaccess.

    That fixes the problem.

    Thanks for your quick reply.

    mj1256 Friend
    #263551

    thats not a probolem, thats stardard Procedure for enabling SEF on joomla, It even tells you to do that when you enable SEF. (hover of the i and you get a tool tip.

    My comments were not fixes for or addressing your initial problem, but giving you the next steps to take with that .htaccess file.

    caclemor Friend
    #263958

    So now I am having another issue with being able to locate the .htaccess file on my hosting server but I am talking to hostgator about that.

    Thanks for your help. Do you know anything about the mod_ja_slwi (spotlight) module? I posted an issues a few days ago and have had no replies. It was posted on August 3rd believe the title is Spotlight Issues.

    Just having issues with this module and could use some help

    mj1256 Friend
    #263974

    thats typical, many hosts hide the file or do not give their users access to it for security reasons.

    I do not use hostgator but you may have to have to ask them to edit it.

    caclemor Friend
    #263985

    Duh…so now I feel stupid. I forgot to click the show hidden files button. And Voila, there it is..

    caclemor Friend
    #263986

    So does this look right? Do I just add the code to the additional rules and conditions?

    ########## Begin – Joomla! core SEF Section
    #
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/index.php
    RewriteCond %{REQUEST_URI} (/|.php|.html|.htm|.feed|.pdf|.raw|/[^.]*)$ [NC]
    RewriteCond %{HTTP_HOST} ^ultimategayweddings.com$ [NC]
    RewriteRule ^(.*)$ http://www.ultiamtegayweddings.com/$1 [R=301,L]
    RewriteRule (.*) index.php
    RewriteRule .* –
    #
    ########## End – Joomla! core SEF Section

    mj1256 Friend
    #264014

    kinda, but no..

    here is a complete .htaccess with the redirect syntax. and NO SEF component installed (such as artio, sh404)

    ##
    # @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 /

    RewriteCond %{HTTP_HOST} ^YOURDOMAINNAME.com$ [NC]
    RewriteRule ^(.*)$ http://www.YOURDOMAINNAME.com/$1 [R=301,L]

    ########## 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_{1,21}(=|%3D)
    # Block out any script trying to base64_encode crap to send via URL
    RewriteCond %{QUERY_STRING} base64_encode.*(.*)
    # 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,2})
    # Block out any script trying to modify a _REQUEST variable via URL
    RewriteCond %{QUERY_STRING} _REQUEST(=|{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

    mj1256 Friend
    #264016

    if you use a SEF component such as artio or sh404

    use this

    ##
    # @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 /

    RewriteCond %{HTTP_HOST} ^YOURDOMAINNAME.com$ [NC]
    RewriteRule ^(.*)$ http://www.YOURDOMAINNAME.com/$1 [R=301,L]

    ########## 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_{1,21}(=|%3D)
    # Block out any script trying to base64_encode crap to send via URL
    RewriteCond %{QUERY_STRING} base64_encode.*(.*)
    # 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,2})
    # Block out any script trying to modify a _REQUEST variable via URL
    RewriteCond %{QUERY_STRING} _REQUEST(=|{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

    caclemor Friend
    #264125

    So I just copy and paste all of this into the .htaccess file without any chages? Sorry to be a pest but trying to understand all this.

    Thanks

    mj1256 Friend
    #264202

    yes, if you install artio or another SEO component you need the second one

    for just standard SEF in joomla you use the first one.

    make sure you replace yourdomain with your actual domain name

    and you have to name the file
    .htaccess
    thats (dot)htaccess with no extension

Viewing 14 posts - 1 through 14 (of 14 total)

This topic contains 14 replies, has 3 voices, and was last updated by  mj1256 16 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum