Category display not displaying correctly

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Jan 10, 2015 11:35 am
Reply with quote
Report this post
Hi,
On the front page of my site http://rusticsourdoughbakery.com/ if you click on the locations tab, then click on locations it takes you here http://rusticsourdoughbakery.com/index. ... -locations and that doesn't display nicely. I want it to display the same way it does when you click on locations in the top menu http://rusticsourdoughbakery.com/index.php/locations
And if that can't be done then I just want to take out the locations category in the tab.
User avatar
Junior Boarder

teitbite
Sun Jan 11, 2015 10:49 pm
Reply with quote
Report this post
Hi

Looks like joomla does not recognise link in module as a category. Please check if "Locations" menu item is set as K2 Category and has only one category attached. If yes than try select all menu options and hit "Rebuild" button.

If the above will fail try add a redirection in redirection component from: index.php/component/k2/itemlist/category/28-locations to index.php/locations or add it to htaccess file.
User avatar
Moderator

GK User
Sat Jan 17, 2015 8:21 am
Reply with quote
Report this post
I did this to my .htaccess but it must be wrong because it doesn't want to work.
Code: Select all
# Use PHP5.4 as default
AddHandler application/x-httpd-php54 .php
RewriteCond %{HTTP_HOST} ^http://rusticsourdoughbakery.com/index.php/component/k2/itemlist/category/28-locations [NC]
RewriteRule ^(.*)$ http://rusticsourdoughbakery.com/index.php/locations [R=301,L]
User avatar
Junior Boarder

teitbite
Mon Jan 19, 2015 5:18 pm
Reply with quote
Report this post
Hi

A code in .htaccess should be much simplier. For example:

Code: Select all
redirect 301 http://rusticsourdoughbakery.com/index.php/component/k2/itemlist/category/28-locations http://rusticsourdoughbakery.com/index.php/locations
User avatar
Moderator

GK User
Mon Jan 19, 2015 5:42 pm
Reply with quote
Report this post
Thanks. I just tried that so it looks like this
Code: Select all
# Use PHP5.4 as default
AddHandler application/x-httpd-php54 .php
redirect 301 http://rusticsourdoughbakery.com/index.php/component/k2/itemlist/category/28-locations http://rusticsourdoughbakery.com/index.php/locations

But no changes?
User avatar
Junior Boarder

teitbite
Wed Jan 21, 2015 6:16 pm
Reply with quote
Report this post
Hi

This can only mean that htaccess is not used. Please send me an access to ftp so I'll see what the problem is.
User avatar
Moderator

teitbite
Wed Jan 21, 2015 7:19 pm
Reply with quote
Report this post
Hi

Ok. It was a small mistake. The actual link You should redirect from should be without host name. Like:

Code: Select all
redirect 301 /index.php/component/k2/itemlist/category/28-locations http://rusticsourdoughbakery.com/index.php/locations


this works.
User avatar
Moderator

GK User
Wed Jan 21, 2015 7:30 pm
Reply with quote
Report this post
ah wow thank you so much!
User avatar
Junior Boarder

teitbite
Fri Jan 23, 2015 8:07 pm
Reply with quote
Report this post
Hi

No problem. Glad I could help :)
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.