Advertisement

Suggestions on how to create duplicate url's for one article

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

Moderator: General Support Moderators

Locked
Medoomi
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Tue Nov 13, 2007 4:09 am

Suggestions on how to create duplicate url's for one article

Post by Medoomi » Fri Mar 27, 2009 4:35 pm

Hi,

Would I have to create a re-direct page to maintain two separate url's for an article...

Or is there a way of creating an alias url that points to the same place?

I have SEF url's activated...

Thanks.

Advertisement
PavlovaPete
Joomla! Explorer
Joomla! Explorer
Posts: 473
Joined: Fri Aug 19, 2005 5:30 am

Re: Suggestions on how to create duplicate url's for one article

Post by PavlovaPete » Mon Mar 30, 2009 12:39 am

Hi Medoomi

>> two separate url's for an article

Why do you want to do this?

Using alias to do this is easy with a SEF extension like SH404 or the others.

Cheers
http://forum.joomla.org/viewtopic.php?f=428&t=272481 Forum Post Assistant - If you are serious about wanting help, you will use this tool when you post.
Signature rules - Literal URLs Only.

User avatar
Alextampa
Joomla! Guru
Joomla! Guru
Posts: 557
Joined: Fri Jan 09, 2009 3:16 pm
Location: Tampa

Re: Suggestions on how to create duplicate url's for one article

Post by Alextampa » Mon Mar 30, 2009 2:19 pm

each menu link should have a different url

Medoomi
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Tue Nov 13, 2007 4:09 am

Re: Suggestions on how to create duplicate url's for one article

Post by Medoomi » Mon Mar 30, 2009 3:22 pm

Great!

I've installed SH404, and it's up and running nicely. I wonder if Joomla will integrate this into the core sometime?

Thanks so much for pointing me there.

User avatar
Macsimice
Joomla! Explorer
Joomla! Explorer
Posts: 331
Joined: Sun Mar 18, 2007 12:50 pm
Location: Netherlands
Contact:

Re: Suggestions on how to create duplicate url's for one article

Post by Macsimice » Tue Mar 31, 2009 4:10 pm

Joomla has it's own integrated SEF support which you can activate from the config panel. There are some that think they need a third party component like the one you're using, but the core solution also works great (for me anyway).
Cheers, Babs
-------------------
http://crossinghippos.com

Medoomi
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Tue Nov 13, 2007 4:09 am

Re: Suggestions on how to create duplicate url's for one article

Post by Medoomi » Tue Mar 31, 2009 4:34 pm

Macsimice wrote:There are some that think they need a third party component like the one you're using, but the core solution also works great (for me anyway).
Hmmm yes, that's kind of what I thought too...

Till a client requested that they have not only www.website.com/articlename for the url of a single article, but something "simpler" like www.website.com/atn (as well).

If you know of a way of doing both with the core Joomla SEF features, please let me know.

User avatar
Macsimice
Joomla! Explorer
Joomla! Explorer
Posts: 331
Joined: Sun Mar 18, 2007 12:50 pm
Location: Netherlands
Contact:

Re: Suggestions on how to create duplicate url's for one article

Post by Macsimice » Tue Mar 31, 2009 5:26 pm

Medoomi wrote:
Macsimice wrote:There are some that think they need a third party component like the one you're using, but the core solution also works great (for me anyway).
Hmmm yes, that's kind of what I thought too...

Till a client requested that they have not only http://www.website.com/articlename for the url of a single article, but something "simpler" like http://www.website.com/atn (as well).

If you know of a way of doing both with the core Joomla SEF features, please let me know.
First of all, you really want to have 'just' one url linking to a one page (proper SEO practice).

In your case, the easiest way to do this is to apply the desired name ('atn') as the alias of your article url and/or the alias of your menu item, since these are the names that appear in your url.

If that's not enough, then I'll see you back here ;)
Cheers, Babs
-------------------
http://crossinghippos.com

Medoomi
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Tue Nov 13, 2007 4:09 am

Re: Suggestions on how to create duplicate url's for one article

Post by Medoomi » Tue Mar 31, 2009 6:53 pm

I understand that keeping one url has certainly got to be the better practise, but clients will be clients, and rather than have a separate re-direct page, it makes a cleaner appearance to maintain two urls for one document.

So... if I set "atn" for the alias of the article, if I understand it correctly, the url is going to be www.mywebsite.com/atn (but nothing else).

How do I include the old url (given that people have been using it for months, are going to keep trying to use it & will get confused if it does not work)?

User avatar
Macsimice
Joomla! Explorer
Joomla! Explorer
Posts: 331
Joined: Sun Mar 18, 2007 12:50 pm
Location: Netherlands
Contact:

Re: Suggestions on how to create duplicate url's for one article

Post by Macsimice » Wed Apr 01, 2009 9:28 am

Medoomi wrote:I understand that keeping one url has certainly got to be the better practise, but clients will be clients, and rather than have a separate re-direct page, it makes a cleaner appearance to maintain two urls for one document.

So... if I set "atn" for the alias of the article, if I understand it correctly, the url is going to be http://www.mywebsite.com/atn (but nothing else).

How do I include the old url (given that people have been using it for months, are going to keep trying to use it & will get confused if it does not work)?
I guess the easiest way would be to have two menu entries to the same document, one of which sits in your menu, and the other is perhaps in an unpublished, second menu.

Of course, if you have many of those this would not be maintainable.

Another solution (that I haven't tried but am thinking of for a problem of my own) is to try if you can use error.php to extract the path variable and see if you can put together the 'new' url with JRoute.

I'll try to explain:
Before, the view was called with index.php/item_alias/view_name/id/page_name.html
The new url is something like index.php/item_alias/id/page_name.html

When a visitor requests the page using the old url, I'll extract the id and the view to recreate the path with the new router.

Its theory, but I'm sure it'll work.

Is this what you're getting at?
Cheers, Babs
-------------------
http://crossinghippos.com

Hsekhar
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Feb 12, 2009 1:16 am

Re: Suggestions on how to create duplicate url's for one article

Post by Hsekhar » Wed Apr 01, 2009 11:08 am

I have been looking for this too, Thanks for all the advice. Will try them and hopefully succeed in creating two URLs.

Medoomi
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Tue Nov 13, 2007 4:09 am

Re: Suggestions on how to create duplicate url's for one article

Post by Medoomi » Wed Apr 01, 2009 3:53 pm

Macsimice wrote:Is this what you're getting at?
Thanks for the menu suggestion. That's certainly an easy way of doing it for one or two such rogue articles.

As for using JRoute, it would be interesting if it worked, but it would need to be something fairly reliable.

My thinking is that if the Joomla core could be updated to handle these exceptions (like sh404, it would make life easier)...

Advertisement

Locked

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