Page 1 of 1

?tmpl=component Redirect

Posted: 03 Dec 2012, 14:39
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:

Re: ?tmpl=component Redirect

Posted: 07 Dec 2012, 23:51
by Jan
Ok, thank you for the guide.

Jan

Re: ?tmpl=component Redirect

Posted: 11 Dec 2012, 23:48
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

Re: ?tmpl=component Redirect

Posted: 20 Apr 2015, 22:47
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.