url with menu name and id

Discuss Search Engine Optimization in relation to Joomla!. This forum will also have discussions on SEF/SEO Joomla! extensions.

Moderator: General Support Moderators

Locked
User avatar
Bettinz
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 209
Joined: Fri Sep 23, 2005 3:31 pm
Location: Italy
Contact:

url with menu name and id

Post by Bettinz » Thu Sep 25, 2008 11:59 pm

Hi all,
i've try to migrate my Joomla 1.0.15 site to Joomla 1.5.7, but i've a problem with the url:
now, with the 3 options in global configuration active and with this htaccess

Code: Select all

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

RewriteEngine 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_[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 <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-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

#  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 .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section
joomla create an url like:
http://www.mysite.com/[menuname]-topmen ... name].html
or
http://www.mysite.com/[menuname]-mainme ... name].html

for example, if the article is called bettinz (id5), and the button in the menu is biography (id10) in the mainmenu, it create
http://www.mysite.com/biography-mainmen ... ttinz.html

any idea?

ps: sorry for the english but i'm italian ;)

User avatar
trichnosis
Joomla! Explorer
Joomla! Explorer
Posts: 315
Joined: Wed May 17, 2006 4:15 pm

Re: url with menu name and id

Post by trichnosis » Fri Sep 26, 2008 9:40 am

i'm having the same problem.

i'm currently using old opensef for my urls.

my current urls are like

/section/category/article-title-ArticleID.html for articles
/section/category/ for categories
/section/ for sections
/section/category/page_PageNumber.html for categories pages
/section/category/article-title-ArticleID_PageNumber.html for multipage articles

i need to create for the same url structre for moving for from 1.0.x to 1.5.x .

User avatar
sone12
Joomla! Champion
Joomla! Champion
Posts: 5446
Joined: Wed Oct 11, 2006 1:12 pm
Location: Kristiansand, Norway
Contact:

Re: url with menu name and id

Post by sone12 » Sat Sep 27, 2008 11:24 am

Bettinz wrote:any idea? :(
mod note: @Bettinz:Please do not post BUMPS in the future. Your post was deleted
Kristian P. Granrud

artbobo
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Jul 05, 2007 1:52 am

Re: url with menu name and id

Post by artbobo » Wed Oct 01, 2008 4:02 pm

I'm have having the same problem with the article id being added to the SEF url.
The article id is pre-pended to the article alias so that the url is
http://www.mydomain.com/category-alias/ ... alias.html
I would like to get this resolved before submitting a site map.
I'm assuming that adding the article id is a way of creating unique urls when some has two article alias that are the same.
--artbobo

User avatar
Bettinz
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 209
Joined: Fri Sep 23, 2005 3:31 pm
Location: Italy
Contact:

Re: url with menu name and id

Post by Bettinz » Sat Oct 04, 2008 12:59 pm

ok, i've opened a ticket in the tracker ;)
http://joomlacode.org/gf/project/joomla ... m_id=13037

pasamio
Joomla! Ace
Joomla! Ace
Posts: 1318
Joined: Thu Aug 18, 2005 9:27 am
Location: San Jose, CA, USA
Contact:

Re: url with menu name and id

Post by pasamio » Sun Oct 05, 2008 9:21 am

The way the SEO links worked changed from 1.0 to 1.5, so what you're seeing is the new expected behaviour. You're actually seeing something more because you're a migrated site, your alias for menu items also includes the menu that they are in. This was done to ensure that the menu item alias was unique before we put ID's in the menus, but it still lives on.

Check out an article of Steve's which is really a reposting of one of my old blog posts on the topic:
http://www.alledia.com/blog/joomla-urls ... ls-to-1.5/

Hopefully that solves your problem.
Sam Moffatt
Updater, Installer and Authentication Systems
JoomlaCode Backend Systems
Pie.

User avatar
Bettinz
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 209
Joined: Fri Sep 23, 2005 3:31 pm
Location: Italy
Contact:

Re: url with menu name and id

Post by Bettinz » Sun Oct 05, 2008 3:57 pm

thanks for the reply..
i hope that google accept the new SEO urls with the same pagerank ;)


Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 1.5”