logo
WSN Links PHP Directory Software
Features Showcase Reviews Demos Purchase Manual Support
 

"apache mod rewrite" and category names
Different lang chars

Version:


"apache mod rewrite" and category names
piskedi
Member

Usergroup: Member
Joined: Oct 17, 2004
Total Topics: 13
Total Posts: 44
Posted 11/07/04 - 01:43 PM:
quote post
#1
I tried using the apache mod rewrite with category names and yes, it works very well..

But in my language there are different chahacters like "ç,þ,ý,ð"etc. The cat.names including these chars are displayed normally on the page, because I changed the charsets to win-1254. But the category links, in fact, still include the strange characters like"#&304;" etc.in themselves. So when I click on them, the category link opens a page like "wsn/"#&304", which ends as a dead link.

How can I correct this? I want to use these characters, because when they are not used or replaced by other similar letters, the meaning of the word changes to something absurd. So this makes it impossible for people like me to use this nice feature



Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 11/09/04 - 12:32 AM:
quote post
#2
It should be doing only numerical rewriting for categories that contain such characters. That seems to me the best solution.
piskedi
Member

Usergroup: Member
Joined: Oct 17, 2004
Total Topics: 13
Total Posts: 44
Posted 11/09/04 - 11:26 AM:
quote post
#3
Yes,that's practical but this also means giving up using this feature because not all, but most of my catnames include these characters.

Is this caused by the script or is it something about apache?Perhaps there's some point I should define my charsets to eliminate this error, but where?

I'll be glad if you guide me about this.It's imminent for people from many countries to encounter the same problem too.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 11/11/04 - 01:04 PM:
quote post
#4
There have been some past threads where people indicated they change the htaccess file to accept more characters. Might or might not work, I don't know.
piskedi
Member

Usergroup: Member
Joined: Oct 17, 2004
Total Topics: 13
Total Posts: 44
Posted 11/13/04 - 10:06 AM:
quote post
#5
I found the referring posts about editing .htaccess, and I tried this:

RewriteRule ^([-_/+A-Za-z0-9%çþðýÇÞÐI]+)$ index.php?action=displaycat&catname=$1

No, it didn't work..I think I will not be able to use this feature
piskedi
Member

Usergroup: Member
Joined: Oct 17, 2004
Total Topics: 13
Total Posts: 44
Posted 11/14/04 - 12:23 PM:
quote post
#6
Interesting..
RewriteRule ^([-_/+A-Za-z0-9%çþðýÇÞÐI]+)$ index.php?action=displaycat&catname=$1 does not work, but when I extract the "%",so it looks like
RewriteRule ^([-_/+A-Za-z0-9çþðýÇÞÐI]+)$ index.php?action=displaycat&catname=$1
Yes, it works now..But even so, when the category is opened, its name in the address bar still shows strange characters..

I'll use it this way, I hope it does not cause problems in the future.
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

Admin Control Panel

   
Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support
© 2008 Paul Knierim. All rights reserved.