how to access http://www.example.com/uch3245 url

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
only_anu2005
Forum Newbie
Posts: 1
Joined: Sun Jul 13, 2008 8:32 am

how to access http://www.example.com/uch3245 url

Post by only_anu2005 »

Hi,

I need help. I want to know how to access http://www.example.com/uch3245

uch3245 is a value that is dynamics and keeps changing

Basically I want access http://www.example.com/xyz.php?var=uch3245 as http://www.example.com/uch3245



Please if any one can help me?
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

Re: how to access http://www.example.com/uch3245 url

Post by yacahuma »

i think this has do do with apache url rewrite. I dont use them , so I cannot give more details
deadoralive
Forum Commoner
Posts: 28
Joined: Tue Nov 06, 2007 1:24 pm

Re: how to access http://www.example.com/uch3245 url

Post by deadoralive »

Yeah mod_rewrite that one

Try this

Code: Select all

 
RewriteEngine on
 
RewriteRule ^([A-Za-z0-9]+)/$ /xyz.php?var=$1 [L]
 
This needs to go in a file called .htaccess in your document root folder

Hope this helps
Post Reply