sufian Posted July 27, 2009 Share Posted July 27, 2009 Masking a URL, Is it possible to mask a URL in php for example I have a url shortening site and I need it so when you shorten a url the link you get is a mask so lets say I shorten http://google.com into: http://mysite.com/dse when I click on the link: http://mysite.com/dse it stays like that at the top of the site. it does not change to http://google.com when I click it. If php can do that how and if so what other methods are their. Link to comment https://forums.phpfreaks.com/topic/167703-php-help/ Share on other sites More sharing options...
.josh Posted July 28, 2009 Share Posted July 28, 2009 not 100% sure what you are wanting to do here but maybe mod rewrite might be what you're looking for Link to comment https://forums.phpfreaks.com/topic/167703-php-help/#findComment-884377 Share on other sites More sharing options...
ldougherty Posted July 28, 2009 Share Posted July 28, 2009 The only way you could do this via PHP or any code for that matter would be to use an IFRAME. Essentially you keep the main page as the URL you want an open the site you want in an iframe that takes 100% of the page. Otherwise you would definitely be looking to use mod_rewrite. Link to comment https://forums.phpfreaks.com/topic/167703-php-help/#findComment-884419 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.