Cool Sporty
Cool Sporty

Reputation: 311

Showing the desired url in address bar but actually not

I am seeking a way that when the user click on a link.. it should go to that address but should show my desired url in the address bar..

Is there any procedure in php & smarty.

Please help me. i am new ti this condition,

Upvotes: 1

Views: 5115

Answers (2)

C.A. Vuyk
C.A. Vuyk

Reputation: 1085

Php and Smarty I don't know but you can do anything with url's if you use a .htaccess file. E.g. assign an other page to your URL so www.myDomain/index.php?pageID=1 will be www.myDomain/someProductname.

To learn to implement and use this, there are a lot of resources. Here's a basic: http://coding.smashingmagazine.com/2011/11/02/introduction-to-url-rewriting/

Upvotes: 1

RobIII
RobIII

Reputation: 8821

You can't "fake" a url in the address bar; that would be a big security issue. It would enable you to show "mybank.com" whilst being on an evil site...

What you're probably referring to is something like AJAX or using a frameset or iFrame.

Upvotes: 2

Related Questions