-
AuthorPosts
-
September 2, 2008 at 12:08 am #132820
I’ve turned on Search Engine Friendly links, but each page is showing up in simplified HTML vs. the layout. I have changed the htaccess.txt to .htaccess, and have also ensured the right mod_security settings are in place…
Looks just fine, until I turn on Search Engine Friendly feature… Any ideas, or experiences out there?
mj1256 Friendmj1256
- Join date:
- June 2007
- Posts:
- 1473
- Downloads:
- 10
- Uploads:
- 35
- Thanks:
- 84
- Thanked:
- 225 times in 118 posts
September 2, 2008 at 1:53 am #268231check you htaccess and make sure it is not blank
September 2, 2008 at 2:01 am #268235Just checked, and it is not blank…
<blockquote>##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z 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
########## 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# 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</blockquote>
September 2, 2008 at 4:01 pm #268323Here’s what I tried so far…
Bottom line when it urn on SEF all formatting (no CSS) is lost on any page beyond the home page…
I have done the following, after reading these forums.
1. Cleaned Cache
2. chnaged file name to .htaccess in the root directory (and verified there is information in the file, ie. not blank)
3. disabled mod_securityWhat else do I have to do to make this work?
Thanks in advance –mj1256 Friendmj1256
- Join date:
- June 2007
- Posts:
- 1473
- Downloads:
- 10
- Uploads:
- 35
- Thanks:
- 84
- Thanked:
- 225 times in 118 posts
September 2, 2008 at 5:51 pm #268335I’m guessing based on my passed experience and I need more info
where are you hosted
try adding a 301 canonical redirect
September 2, 2008 at 5:59 pm #268337LiquidWeb
What is a 301 redirect?
I have another Joomla site on the same server, and it works just fine… I posted here thinking it might be related to the template I’m using from JA.
Thanks for any additional advice –
jernejc Friendjernejc
- Join date:
- July 2008
- Posts:
- 22
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 2
- Thanked:
- 5 times in 4 posts
September 2, 2008 at 8:22 pm #268342Wich Joomla version?
You using a component for the SEO links or the “core”, “native”, not sure how to call it option?Also, not sure what you mean with the simple HTML format. If the CSS isn’t included, then the $live_site variable probably gets messed up somehow. Could you post a screenshot aswell?
EDIT: one thing crossed my mind.
Open templates/ja_olivine/index.php and in the lines 30 and 31 replace:
<blockquote> <?php echo $tmpTools->templateurl(); ?></blockquote>
with:
templates/ja_olivineShould look something like:
<blockquote>
<link rel=”stylesheet” href=”templates/ja_olivine/css/template_css.css” type=”text/css” />
<link rel=”stylesheet” href=”templates/ja_olivine/css/typo.css” type=”text/css” />
</blockquote>You might wanna delete <?php echo $tmpTools->baseurl(); ?> in the lines 28 and 29 aswell.
Because it’s possible that SEO links have effect on those variables and if you write them into the index.php directly, nothing like that should happen.Not sure about this tho 😉
PS: If you’re using Joomla 1.5, then the lines to edit are from 27-30 and not from 28-31
September 2, 2008 at 10:33 pm #268364using version 1.5.6
This is the link of the SEF friendly page
http://www.zipsalumniband.com/index.php/alumni-band
and the same page without SEF
http://www.zipsalumniband.com/index.php?option=com_content&view=section&layout=blog&id=6&Itemid=53I think it is related the css not being found. When i made your suggestions, it did not work – similar to above… All raw text, all broken images… I think you might be onto something…
On your site, do you have the same issue? ANy other ideas on the suggestions youmade? I pasted what you provided…
jernejc Friendjernejc
- Join date:
- July 2008
- Posts:
- 22
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 2
- Thanked:
- 5 times in 4 posts
September 3, 2008 at 9:14 am #268473As suspected the $live_site variable gets messed up. If you check your source code, you’ll see that the css links and basically all the links in your template look like:
http://www.zipsalumniband.com/index.php/...bla
Instead of:
http://www.zipsalumniband.com/...bla
Example ( css links ):
<link rel="stylesheet" href="http://www.zipsalumniband.com/index.php/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="http://www.zipsalumniband.com/index.php/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="http://www.zipsalumniband.com/index.php/templates/ja_olivine/css/template.css" type="text/css" />
<link rel="stylesheet" href="http://www.zipsalumniband.com/index.php/templates/ja_olivine/css/typo.css" type="text/css" />That index.php in front of the /templates folder shouldn’t be there, so the css files don’t get included.
Go to configuration.php and set
var $live_site = '';
( line 21 ) to http://www.zipsalumniband.com.Also try turning on “Apache mod_rewrite” in your SEO configuration. That should remove the index.php in your links.
Plus the “Add suffix to URLs” set to “yes” could help the links aswell. 😉
The problem probably occures because you don’t have the $live_site variable set. The rest of the modifications are just so your links will look better and be more SEO friendly.
1 user says Thank You to jernejc for this useful post
September 3, 2008 at 10:30 am #268493That did it… Works great!!!
I did not remember during the quickstart installation to add this into that file… I’ll remember next time I have this issue on other sites…
Thanks for the fast response.
mj1256 Friendmj1256
- Join date:
- June 2007
- Posts:
- 1473
- Downloads:
- 10
- Uploads:
- 35
- Thanks:
- 84
- Thanked:
- 225 times in 118 posts
September 3, 2008 at 2:11 pm #268510jernejc, good catch
now we need to find out if the css references are an error for JA, and if so, they need to fix it
jernejc Friendjernejc
- Join date:
- July 2008
- Posts:
- 22
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 2
- Thanked:
- 5 times in 4 posts
September 5, 2008 at 7:53 am #268887Nah, this wasn’t a Joomlart problem. It’s just that in Joomla 1.5 it’s not neceseary to have the $live_site variable set as it was in Joomla 1.0, but it’s recomendable, cause of problems like this.
Not sure why that is though 😮
-
AuthorPosts
This topic contains 12 replies, has 3 voices, and was last updated by jernejc 16 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum