Forum Moderators: phranque

Message Too Old, No Replies

How to create short name ?

         

Eustacer

12:00 pm on May 2, 2008 (gmt 0)

10+ Year Member



Hi,

I am new here. I need to solve one thing, but don't know how.
I want to create short domain name like this http://www.example.com/some_name/ . But I need to create it from something like this http://www.example.com/index.php?p=11 . In short: you got to this url http://www.example.com/some_name/, but really it is http://www.example.com/index.php?p=11. How to do it ? Searching or answer, but still don't get anything good.
I am not experienced much, so please help me.

phranque

12:45 pm on May 2, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld [webmasterworld.com], Eustacer!

you can do this with an internal rewrite.
for example if you are using an apache server you can do this with the mod_rewrite module.

Eustacer

1:09 pm on May 2, 2008 (gmt 0)

10+ Year Member



I am bought hosting, don't think that they will do some changes on server. Is there any other way ? Maybe using htaccess ? Or some other thing ?
And how to do that on Apache ? Also interesting, maybe will use in future. can you explain or give link where to read ?

phranque

8:46 pm on May 2, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



there are several threads in the Apache Web Server forum Library [webmasterworld.com] which could be useful or at least informative.