-
AuthorPosts
-
July 2, 2008 at 6:30 am #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.
AlanaMenalto FriendMenalto
- Join date:
- May 2007
- Posts:
- 4736
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 2
- Thanked:
- 531 times in 361 posts
July 2, 2008 at 7:27 am #257528What is in basic your problem at first place?
July 2, 2008 at 7:35 am #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 FriendMenalto
- Join date:
- May 2007
- Posts:
- 4736
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 2
- Thanked:
- 531 times in 361 posts
July 2, 2008 at 7:40 am #257533At first place did you rename htaccess.txt to .htaccess? You find that in root of your joomla installation.
July 2, 2008 at 7:54 am #257536No 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 JATCkarlhus
- Join date:
- July 2006
- Posts:
- 23
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 7
- Thanked:
- 6 times in 2 posts
July 2, 2008 at 3:49 pm #257629hey 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 useRewriteEngine 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
1 user says Thank You to karlhus for this useful post
July 4, 2008 at 7:09 am #257928Thank 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,
AlanaPS your website is “brillilant”
karlhus JATCkarlhus
- Join date:
- July 2006
- Posts:
- 23
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 7
- Thanked:
- 6 times in 2 posts
July 6, 2008 at 4:41 pm #258178thanks for the thanks, i’m glad we could help.
1 user says Thank You to karlhus for this useful post
August 21, 2008 at 2:58 am #266399Yes, Karl, let me second that, I found your post extremely helpful and it worked great for me as well.
-geejmauriva
October 4, 2008 at 8:27 am #273822If SEF is checked the rest of the site comes up 404 unavailable
karlhus JATCkarlhus
- Join date:
- July 2006
- Posts:
- 23
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 7
- Thanked:
- 6 times in 2 posts
October 4, 2008 at 5:12 pm #273840hey alana james-
please list the steps you took in order and maybe we can find the missing link…
1 user says Thank You to karlhus for this useful post
mj1256 Friendmj1256
- Join date:
- June 2007
- Posts:
- 1473
- Downloads:
- 10
- Uploads:
- 35
- Thanks:
- 84
- Thanked:
- 225 times in 118 posts
October 4, 2008 at 6:33 pm #273845if 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 useRewriteEngine 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 exploits1 user says Thank You to mj1256 for this useful post
-
AuthorPosts
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