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
Is there a way to remove "category" from URLs?
-
swiftmed
- Phoca Member

- Posts: 26
- Joined: 07 Jan 2009, 06:51
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Is there a way to remove "category" from URLs?
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
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

- Posts: 26
- Joined: 07 Jan 2009, 06:51
Re: Is there a way to remove "category" from URLs?
worked perfectly. Thank you Jan.
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Is there a way to remove "category" from URLs?
Great to hear it.
If you find Phoca extensions useful, please support the project