Forum Moderators: phranque

Message Too Old, No Replies

mod_rewrite on numbers.

         

unsal korkmaz

7:01 pm on Jan 13, 2006 (gmt 0)

10+ Year Member



Hi.
i want to use mod_rewrite on numbers but i cant find it anywhere..

Forexample i want to create a rule like that:
0 - z
1 - o
2- t

www.example.com/numbers-tzot.html
must be redirect to:
www.example.com/numbers-2012.html

so..
i try to rewrite numbers in URL's..

can i do that?

jdMorgan

7:35 pm on Jan 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



unsal korkmaz,

Welcome to WebmasterWorld!

If you have httpd.conf access, you could use RewriteMap to call a cgi script to do this.

The only alternative in .htaccess is to substitute characters one at a time, which is highly inefficient.

Jim

unsal korkmaz

7:51 pm on Jan 13, 2006 (gmt 0)

10+ Year Member



Thank you for your reply @jdMorgan

i have root access but i dont use any cgi script yet :(

can you write an example for me please?

i use Virtuozzo-plesk system if it's necessary

Thank you for your intelligence