Single URL for all Sub URL in PHP & HTML -
i need if user @ www.xyz.com/z
or www.xyz.com/z.trial.php
or www.xyz.com/offer.php
url bar should show , www.xyz.com.
yes, it's easy have iframe, iframe
not work url copied , pasted manually in url bar.
i thankful if provides me hint code.
it possible.. suppose directory structure -
wamp/www/project/.htaccess
wamp/www/project/myproject
wamp/www/project/myproject/file1.php
wamp/www/project/myproject/file2.php
wamp/www/project/myproject/file3.php
your .htaccess file code
# turn rewrite engine on rewriteengine on # map neat url internal url rewriterule ^myproject/sub1$ myproject/file1.php [nc,qsa] rewriterule ^myproject/sub2$ myproject/file2.php [nc,qsa] rewriterule ^myproject/sub3$ myproject/file3.php [nc,qsa]
sub1, sub2, sub3 can changed because hiding actual resource (php file / html file) user
this concept used in designing rest webservice using core php.
you can use simple php project. hide actual resource location end user's
hope, works u.. :) :)
Comments
Post a Comment