How to change URL's for each page in site?

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

Moderator: General Support Moderators

Locked
robertellement
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Mon Jun 20, 2011 5:36 am

How to change URL's for each page in site?

Post by robertellement » Mon Jun 20, 2011 5:41 am

I've been trying to optimize my Joomla 1.5 site for search engines and was wondering if there was any way to change the URL's of all of my pages so instead of a bunch of generated php stuff it can say like 'www.site.com/music/lessons'.

Any help would be awesome. Cheers :D

User avatar
RussW
Joomla! Exemplar
Joomla! Exemplar
Posts: 9349
Joined: Sun Oct 22, 2006 4:42 am
Location: Sunshine Coast, Queensland, Australia
Contact:

Re: How to change URL's for each page in site?

Post by RussW » Mon Jun 20, 2011 6:30 am

setup your menu's with aliases (should do this for you anyway) and enable the SEF option in the Global Configuration.
Joomla! on the fabulous Sunshine Coast...
hotmango, web & print http://www.hotmango.me/
The Styleguyz https://www.thestyleguyz.com/

robertellement
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Mon Jun 20, 2011 5:36 am

Re: How to change URL's for each page in site?

Post by robertellement » Tue Jun 21, 2011 4:27 am

Thanks :) makes sense. I've coded most of my own links in with my site. When i switch it over will i have to rewrite the url's for all my links???

kamasajei
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Dec 15, 2011 9:23 pm

Re: How to change URL's for each page in site?

Post by kamasajei » Thu Dec 15, 2011 10:08 pm

mine still says "site.com/index.php/contact

How can I make it say only "site.com/contact"?

(I chose SEF in Global Config, and Put the Alias "contact" for the contact menu in Main Menu, Article Layout.)

Thanks Joomla family :)

kamasajei
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Dec 15, 2011 9:23 pm

Re: How to change URL's for each page in site?

Post by kamasajei » Fri Dec 16, 2011 5:12 am

RussW wrote:setup your menu's with aliases (should do this for you anyway) and enable the SEF option in the Global Configuration.

mine still says "site.com/index.php/contact

How can I make it say only "site.com/contact"?

(I chose SEF in Global Config, and Put the Alias "contact" for the contact menu in Main Menu, Article Layout.)

Thanks Joomla family ! :)

JuliaLee
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Thu Jun 20, 2013 10:10 am

Re: How to change URL's for each page in site?

Post by JuliaLee » Fri Oct 04, 2013 12:24 pm

I have updated the page alias but the page url did not change. How do I do this?

User avatar
pishro
Joomla! Explorer
Joomla! Explorer
Posts: 301
Joined: Tue Oct 09, 2012 7:22 am

Re: How to change URL's for each page in site?

Post by pishro » Fri Oct 04, 2013 1:23 pm

JuliaLee wrote:I have updated the page alias but the page url did not change. How do I do this?
please see: http://docs.joomla.org/Glossary

And:
The Alias
The first step is the generation of the so called alias. The alias is used in the URL instead of the title (the alias is the text you want to have in the URL). The alias has to be URI safe, which means accented UTF­8 characters are replaced by their ASCII­7 equivalents, white spaces by hyphens, etc.
The alias can be defined by the user, but you should ensure that the above requirements for a URL safe alias are met. A good way to do so is to use the JTable::check() method during the save process. Have a look at this example code:

Code: Select all

function check()
{
    jimport( 'joomla.filter.output' );
    if(empty($this->alias)) {
            $this->alias = $this->title;
    }
    $this->alias = JFilterOutput::stringURLSafe($this->alias);
 
    /* All your other checks */
    return true;
}

JuliaLee
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Thu Jun 20, 2013 10:10 am

Re: How to change URL's for each page in site?

Post by JuliaLee » Fri Oct 04, 2013 1:44 pm

Thanks, turns out the Alias can't be edited but has to be emptied first.

JuliaLee
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Thu Jun 20, 2013 10:10 am

Re: How to change URL's for each page in site?

Post by JuliaLee » Fri Oct 04, 2013 1:45 pm

the url is still not updating


Locked

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