Is there a way to remove "category" from URLs?

Phoca Gallery - image gallery extension
swiftmed
Phoca Member
Phoca Member
Posts: 26
Joined: 07 Jan 2009, 06:51

Is there a way to remove "category" from URLs?

Post by swiftmed »

Hey Guys,

My gallery is working perfectly so far, id like to know if its possible to remove the word 'category' from page URLs though when viewing the gallery?

Currently my URLs are showing up in the following layout:
http://www.mileycyrus-online.co.uk/mile ... t-pictures

Is this possible?
Thanks - Andy
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Is there a way to remove "category" from URLs?

Post by Jan »

Hi, the word category is here, because on some servers the SEO without this word produced wrong links (there was not difference between category and image displaying)

see:
components\com_phocagallery\router.php
and comment or remove all 3 items:

if(isset($query['view'])) {$segments[] = $query['view'];}

Jan
If you find Phoca extensions useful, please support the project
swiftmed
Phoca Member
Phoca Member
Posts: 26
Joined: 07 Jan 2009, 06:51

Re: Is there a way to remove "category" from URLs?

Post by swiftmed »

worked perfectly. Thank you Jan.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Is there a way to remove "category" from URLs?

Post by Jan »

Great to hear it.
If you find Phoca extensions useful, please support the project
Post Reply