Page 1 of 1

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

Posted: Sun Jul 13, 2008 8:40 am
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?

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

Posted: Sun Jul 13, 2008 8:48 am
by yacahuma
i think this has do do with apache url rewrite. I dont use them , so I cannot give more details

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

Posted: Sun Jul 13, 2008 9:52 am
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