Forum Moderators: phranque

Message Too Old, No Replies

.htaccess problem on XP

         

qeremy

2:01 am on Jun 9, 2010 (gmt 0)

10+ Year Member



Hi all,

I'm trying to get a link like:
http://example.com/@foo-bar (originally http://example.com/tag/foo-bar)

'Cos, I want to escape from to use /tag/ prefix or something else such.

It's working on remote server and local server, but if the tag contains " : | \ etc chars then it doesn't on local server.

Warning:
Forbidden

You don't have permission to access /www/example.com/@"foo-bar" on this server.


My local system is XP and more details: Apache/2.2.8 (Win32) PHP/5.2.6 Server at localhost Port 80

Any idea about the matter?

qeremy

12:21 pm on Jun 9, 2010 (gmt 0)

10+ Year Member



Just update.

jdMorgan

2:54 pm on Jun 9, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You are trying to use 'illegal' characters in your URLs. Don't do this, or you will cause yourself many, many problems with client compatibility and search engines.

As Webmasters, we are NOT free to use "any characters we like anywhere" in domain names, URL-paths, query strings, or URL-fragments -- There are rules.

Using 'reserved' characters in URI means that clients will be required to 'encode' them, making checking your own URLs much more difficult, and likely requiring you to make custom modifications to any off-the shelf scripts you might wish to purchase in order to decode those encoded characters for use.

Please read and bring your URL taxonomy into compliance with RFC2396 - Uniform Resource Identifiers (URI): Generic Syntax [faqs.org]

Note that the 'allowed' characters are different, depending of which part of the URI they appear in.

Jim

qeremy

6:41 pm on Jun 9, 2010 (gmt 0)

10+ Year Member



Tnx for answering Jim.

How can I remove those chars from url using htaccess?

I think I need help more, I googled a lot for this but no result :(

jdMorgan

9:57 pm on Jun 9, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You remove those characters by editing the links on your static HTML pages, or by modifying the scripts that generate your dynamic HTML pages.

Jim