hi all,
i did mod-rewrite in file .htaccess, it run, but i've a problem about filename in the same directory.
For example:
I've 2 file(s): common.php, welcome.php
With URL is
http://localhost/myfolder/data/provi...ry/hotel_name/
i want to run file welcome.php
if URL is:
http://localhost/myfolder/data/provice_directory/
i want to run file: common.php
my code below: (its not okie, i think its wrong)
RewriteRule ^(.*)/$ common.php?_url=$1 [L]
RewriteRule ^(.*)/(.*)/$ welcome.php?_url=$1 [L]
Thanks in advance
Yen





and that's what counts, isn't it?





Bookmarks