Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • alanajames Friend
    #130387

    Hi everyone,
    Search engine friendly URL’s aren’t working with the JA_Wistery installation. When checked in the config file none of the back pages would show. As you can see from my site at http://www.reinventinglife.org, I solved the one problem with pages not showing but had to turn off SEF urls. I would like to get them back.

    I have read the Joomla forums and tried a few htaccess code changes but have not found the answer – and part of the problem is that I don’t understand the problem so I don’t know what to look for in proposed answers.

    I’d be very grateful for both htaccess to copy and paste and an explanation of what is going on in the backend that makes this happen.

    Nevertheless the fact that I have come so far is a testimont to this community.
    Alana

    Menalto Friend
    #257528

    What is in basic your problem at first place?

    alanajames Friend
    #257532

    <em>@Menalto 63797 wrote:</em><blockquote>What is in basic your problem at first place?</blockquote>
    As you can see I modified my post – my problem is that when I click the config for SEF Url’s the rest of the site doesn’t show. As mentioned in my post – I understand that it is an htaccess problem but don’t know how to fix it.

    thanks for any help you can offer

    Menalto Friend
    #257533

    At first place did you rename htaccess.txt to .htaccess? You find that in root of your joomla installation.

    alanajames Friend
    #257536

    No I did not rename it, but I did play around with changing the contents as per a post I found on the main joomla forums.

    karlhus JATC
    #257629

    hey there-

    first, you DO need to rename htaccess.txt to .htaccess – very very important

    then you need to modify the file depending on your server setup. many people use GoDaddy and we’ve got about a dozen working clients there, so here is the code that has worked perfectly with each of those sites coupled with a Joomla 1.5 and a JoomlArt template.

    After renaming and copy/pasting this code into the .htaccess file , WAIT AT LEAST ONE HOUR for the GoDaddy server to refresh and then go to to your admin / global config / SEO settings and set them all to YES. kapow- SEF.

    This is for CORE SEF, only. After you get this working, if you want to add the 3rd party SEF, you’ll most likely have to modify the .htaccess file again. BACK IT UP BEFORE EACH CHANGE.


    ##
    # @version $Id: htaccess.txt 9975 2008-01-30 17:02:11Z ircmaxell $
    # @package Joomla
    # @copyright Copyright (C) 2005 - 2008 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.
    #
    #####################################################

    ## 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! 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} (/|.php|.html|.htm|.feed|.pdf|.raw|/[^.]*)$ [NC]
    RewriteRule (.*) index.php
    RewriteRule .* -
    #
    ########## 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

    alanajames Friend
    #257928

    Thank you Karl,
    Not only will this solve my problem but you have the ability to explain it to someone who is learning.
    I’ve captured your business info for use if I need consultant help. Mucho thanks,
    Alana

    PS your website is “brillilant”

    karlhus JATC
    #258178

    thanks for the thanks, i’m glad we could help.

    geejmauriva Friend
    #266399

    Yes, Karl, let me second that, I found your post extremely helpful and it worked great for me as well.

    -geejmauriva

    alanajames Friend
    #273822

    If SEF is checked the rest of the site comes up 404 unavailable

    karlhus JATC
    #273840

    hey alana james-

    please list the steps you took in order and maybe we can find the missing link…

    mj1256 Friend
    #273845

    if your not using a third party SEF program like artio joomSEF or sh404SEF you can try commenting out the items in the 3rd party sef section.

    ##
    # @version $Id: htaccess.txt 9975 2008-01-30 17:02:11Z ircmaxell $
    # @package Joomla
    # @copyright Copyright (C) 2005 - 2008 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.
    #
    #####################################################

    ## 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! 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} (/|.php|.html|.htm|.feed|.pdf|.raw|/[^.]*)$ [NC]
    RewriteRule (.*) index.php
    RewriteRule .* -
    #
    ########## 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

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

This topic contains 12 replies, has 5 voices, and was last updated by  mj1256 16 years, 1 month ago.

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