?tmpl=component Redirect

Phoca Gallery - image gallery extension
El Paccino
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 03 Dec 2012, 14:29

?tmpl=component Redirect

Post by El Paccino »

Good Morning

after having google index the website which went pretty well I find the url's to direct with this at the end -> ?tmpl=component. I realized popup should have been turned off - so that's been fixed pronto. The fix to get google indexing to the right photo was to edit .htaccess file with the following lines.

RewriteEngine On
RewriteCond %{QUERY_STRING} tmpl=component
RewriteRule ^ %{REQUEST_URI}? [L,R]

Hope this helps anyone in the future :wink:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47885
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: ?tmpl=component Redirect

Post by Jan »

Ok, thank you for the guide.

Jan
If you find Phoca extensions useful, please support the project
Brujo
Phoca Member
Phoca Member
Posts: 49
Joined: 26 Apr 2009, 13:17

Re: ?tmpl=component Redirect

Post by Brujo »

the idea is good and it works, anyhow keep in mind it also has a side efect for example on the administration side for other components which use in the URL tmpl=component. I have one of this components and run into the "Trap" like XMAP & SEOGlossary until i figgured out it. Maybe there is a way to adjust it to the frontend URL`s of the gallery.

kind regards
Brujo
plamen
Phoca Professional
Phoca Professional
Posts: 100
Joined: 16 Mar 2014, 13:23

Re: ?tmpl=component Redirect

Post by plamen »

Phoca Download Admin section is also using ?tmpl=component at some places (choosing users), so this idea is not so good, though it works.
Post Reply