Solved

Joomla Category URL Issue

Posted on 2014-12-04
13
233 Views
Last Modified: 2014-12-16
I have a 2.5.7 installation where if I assign an article to Category A the URL is /index.php/category-a/10231-test-post and it works properly but if I assign it to Category B the URL is /index.php/638-parent-category/category-b/10231-test-post and the link doesn't work (just redirects to homepage).

Both categories are under the same parent category. Why in the world would one generate a different URL that doesn't work?

When I set SEF to off the link still doesn't work if it's in Category B. It becomes:

/index.php?option=com_content&view=article&id=10231:test-post&catid=638:november-2014&Itemid=54

If set to Category A it works and the link is:

/index.php?option=com_content&view=article&id=10231:test-post&catid=633:june-2014&Itemid=1407

The only code in htaccess is this, which I doubt is affecting the issue:

# BEGIN YOURLS
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^([a-zA-Z0-9]+)/?$ /go.php?id=$1 [L] 
</IfModule>
# END YOURLS
AddType video/webm .webm
AddType video/ogg .ogv
AddType video/mp4 .mp4

Open in new window

0
Comment
Question by:sc456a
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 5
13 Comments
 
LVL 1

Author Comment

by:sc456a
ID: 40486631
Does anyone have a suggestion for this issue??
0
 
LVL 25

Expert Comment

by:lenamtl
ID: 40486832
Hi, which SEF plugin are you using?

Some readings
https://docs.joomla.org/Enabling_Search_Engine_Friendly_(SEF)_URLs
0
 
LVL 1

Author Comment

by:sc456a
ID: 40486859
No plugins - the built-in SEF functionality.
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 25

Expert Comment

by:lenamtl
ID: 40487524
Here is one model I use in the past
change mysite.com with your domain, it does also 301redirection you can removed that if you want.

Options +FollowSymLinks
DirectoryIndex index.php
RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.mysite.com/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
rewritecond %{http_host} ^mysite.com [nc]
rewriterule ^(.*)$ http://www.mysite.com/$1 [r=301,nc]
0
 
LVL 1

Author Comment

by:sc456a
ID: 40487621
I'm not trying to setup a redirect. I'm trying to figure out why I can't place articles in certain categories.
0
 
LVL 25

Expert Comment

by:lenamtl
ID: 40488006
I know sorry for the confusion
Igave you one of my .htaccess file content so you can adjust yours ... to make tests
0
 
LVL 1

Author Comment

by:sc456a
ID: 40488936
The problem isn't in the .htaccess file. If it were, none of the categories would be working. I just provided mine to show that it wasn't there.
0
 
LVL 25

Expert Comment

by:lenamtl
ID: 40489360
Is category B is set to a group that require login, this may be the reason why it's not working.

You have to compare both category settings to find what is different
0
 
LVL 1

Author Comment

by:sc456a
ID: 40489443
The category settings appear to be identical.
0
 
LVL 25

Expert Comment

by:lenamtl
ID: 40490192
strange.. You can check if the ID are the good one?
The articles are both set for the same user group same rights?
0
 
LVL 1

Author Comment

by:sc456a
ID: 40495184
"Public" has the same permissions to both categories. I don't know what any of your other questions mean.
0
 
LVL 1

Accepted Solution

by:
sc456a earned 0 total points
ID: 40495430
Issue resolved. I had to create a menu item and assign the category to it. Ugh. Joomla.
0
 
LVL 1

Author Closing Comment

by:sc456a
ID: 40502223
Because my solution had nothing to do with any of the other suggestions.
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question