Category with Alias like "2006" remove proper link

Phoca Gallery - image gallery extension
psytor
Phoca Member
Phoca Member
Posts: 17
Joined: 18 Aug 2015, 16:57

Category with Alias like "2006" remove proper link

Post by psytor »

*Read my last post I think all the details are in there*

Ohhhh gosh...

Everything was working... The only problem I had was the picture Quality... (And am waiting a probably answer from Benno on another thread)... Other than that I finally figured out everything I had to do to make it work... Thanks a lot to Benno...

Now... I don't know why... But there is a problem with the linking when I create a Menu Item to the component to list all the categories...

The listing happens...

But the link is wrong, it points to:

http://mywebsite.com/en/photos/category/1-2006

Instead of:

http://mywebsite.com/index.php/en/photo ... ory/1-2006

What's the problem...

It worked at first... But then it stopped working :-/
Last edited by psytor on 20 Aug 2015, 07:58, edited 1 time in total.
psytor
Phoca Member
Phoca Member
Posts: 17
Joined: 18 Aug 2015, 16:57

Re: Links not working :-((((((

Post by psytor »

I did a test...

When it was working I had a "Parent" category called "Photos" with letters... And I know Letters and numbers sometime mess up with addons...

So I added back the Parent called Photos and it works...

I will do some more testing to see if it's the numbers or not and come back to you...

*Edit*

Interesting...

After fiddling with it... My Category is called 2006... The Alias is 2006... When the alias is 2006 the link is wrong (it removes the index.php part).

I tried with random number (094830942830492) something like that and it worked... So what is the problem... Can anybody point me in the good direction? At least I think I know how I can fix it...

*Correction* I can fix it... by change the Alias from 2006 to photos_2006 it does work...

Is it a bug?
christine
Phoca Hero
Phoca Hero
Posts: 2938
Joined: 28 Nov 2010, 17:20

Re: Category with Alias like "2006" remove proper link

Post by christine »

Hi,
But the link is wrong, it points to:
http://mywebsite.com/en/photos/category/1-2006
Instead of:
http://mywebsite.com/index.php/en/photo ... ory/1-2006
What's the problem...


I don't know exaxtly what you mean :idea: Why do you want to have: /index.php/ also?

URL: http://example.org/index.php/something > could mean: wrong SEO (Search Engine Friendly) are not set.
Url-rewriting set to: No.
htaccess.txt is not changed to: .htaccess

About: "2006" may be, this belongs to: Unicode aliases

More information: http://www.inmotionhosting.com/support/ ... g-sef-urls

kind regards, Christine
psytor
Phoca Member
Phoca Member
Posts: 17
Joined: 18 Aug 2015, 16:57

Re: Category with Alias like "2006" remove proper link

Post by psytor »

Hi Christine,

If you look at your link (More information) you will find at the bottom that there is actually index.php in the proper link.

The problem is (because the search engine friendly option is ON. So I guess that index.php means to be there sometimes...

But my problem is that when I use an alias of 2006 in Phoca Gallery it doesn't work... If I change it to mostly anything else it does work.

So it's not BECAUSE I want index.php to be there... It's because it NEEDS to be there... So unless I missed something... There is a bug with Phoca.
christine
Phoca Hero
Phoca Hero
Posts: 2938
Joined: 28 Nov 2010, 17:20

Re: Category with Alias like "2006" remove proper link

Post by christine »

Hi psystor,
psytor wrote:If you look at your link (More information) you will find at the bottom that there is actually index.php in the proper link.
correct. Because this "section" belongs to: SEF. This means
Instead to having e.g.: http://www.example.org/index.php?option ... 1&Itemid=1
to get e.g.: http://www.example.org/index.php/photos/...

I thought, you will read all sections of the tutorial :wink:
The problem is (because the search engine friendly option is ON. So I guess that index.php means to be there sometimes...
The: "index.php" belongs to: Section 2: http://www.inmotionhosting.com/support/ ... -index-php
> Use URL rewriting > Yes. [see also my previous post) etc.
Before changing to Yes, the: htaccess.txt has to be changed to: .htaccess.

Your hoster should also accept such SEO possibilities and/or in some cases .htaccess requires some changes. You could ask him.

kind regards, Christine
psytor
Phoca Member
Phoca Member
Posts: 17
Joined: 18 Aug 2015, 16:57

Re: Category with Alias like "2006" remove proper link

Post by psytor »

Thanks for the information Christine,

But you must agree that if someone cannot do it with the HTACCESS that means they need the index.php ;-) So there is a problem in that case hihihi ;-)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category with Alias like "2006" remove proper link

Post by Jan »

Anyway, the problem I know, some users get this problem but I didn't find what can cause it as on all of my test servers, I didn't get such problem.

The problem with 1-2006 seems like there is some wrong interpreting the alias - like the alias does not handle the 1-2006 as 1 but as another number. See similar posts. Users how have such problem changed their aliases - of course this is not a proper solution but until it only happens on some servers, this is really hard to detect which part of the system can cause it - if some server settings which is somehow in conflict with routes method or another part :idea: :-(

Jan
If you find Phoca extensions useful, please support the project
psytor
Phoca Member
Phoca Member
Posts: 17
Joined: 18 Aug 2015, 16:57

Re: Category with Alias like "2006" remove proper link

Post by psytor »

Hey Jan,

Thanks for your answer. Would you like me to make some tests?

As we discussed me and Christine before... I don't know why but there is a part of the link missing, it's not only because of the 1-2006...

When I look at the created link by the app... It seems to remove the index.php portion of it...

If you would like me to make some testing I'm used to is as it's my job ;-) (Network Administrator)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category with Alias like "2006" remove proper link

Post by Jan »

Hi,

if there is a problem with missing "index.php" in the URL, then I think, this should be related to .htaccess only - I am not expert on .htaccess, so there I cannot give any clue advice.

To test if there is a problem I have described - just change the alias to some without any numbers, this way it can be easily tested :idea:

Jan
If you find Phoca extensions useful, please support the project
psytor
Phoca Member
Phoca Member
Posts: 17
Joined: 18 Aug 2015, 16:57

Re: Category with Alias like "2006" remove proper link

Post by psytor »

Hi Jan,

As I tried to explain earlier:

1 - I was not using .htaccess
2 - The problem is ONLY when I use an alias like 2006, when you look at the link the index.php is missing from the link
3 - As soon as I change the Alias to something else the index.php comes back in the link

So nothing to do with .htaccess or anything else then the coding of Phoca Gallery.

By the way it's a great extension ;-) Just think there is a little bug with handling some alias hehehe
Post Reply