2

I need some help. How do I hide the URL in the address bar to mask them using .htaccess when a user click on the submit button?

Example: When a user put their email address and click on the submit button, it will redirect them to the site:

www.3rdpartysite.com

How I can make it to show as my domain name as www.myowndomain.com instead of www.3rdpartysite.com?

Can you please show me an example code for the htaccess?

  • I don't believe you can do that with in the way you are thinking. What about using an ` – Clay Jan 08 '16 at 02:07
  • That would be a good idea, how I can use iframe using this ``?? –  Jan 08 '16 at 02:08
  • can I be able to call the iframe from my main page when I use the index.html in my subfolder so I could call the iframe from the main page to redirect me to the site `www.3rdpartysite.com`?? –  Jan 08 '16 at 02:12
  • redirect you to which index.html? You can submit your form to an iframe by using the target attribute of the form tag, or you could have the form itself inside of an iframe. – Clay Jan 08 '16 at 02:13
  • the index.html from the main page like where you visit the site. How I can call the iframe using the iframe by using the target attribute of the form tag? can you show me an example please? –  Jan 08 '16 at 02:16
  • I want to put the iframe code on the bottom of the html code so I could use to call them from the form. How i could do that? –  Jan 08 '16 at 02:17
  • Example: http://stackoverflow.com/a/168488/747678 – Clay Jan 08 '16 at 02:21
  • 1
    You can do this using proxy and the [P flag](https://httpd.apache.org/docs/2.4/rewrite/flags.html#flag_p) So you can use this to pass the parameters to the 3rd party site without changing your URL. – Panama Jack Jan 08 '16 at 09:31
  • @PanamaJack thank you very much for this, how i can use my ref instead of using this `RewriteRule "/(.*)\.(jpg|gif|png)$" "http://images.example.com/$1.$2" [P]`?? –  Jan 09 '16 at 00:49
  • what type of link would the user click on that would be sent to the other site and what's the other site's URL format? – Panama Jack Jan 09 '16 at 08:27
  • @PanamaJack the link would be `empowernetwork.com/totalshortcut/?id=1234` –  Jan 09 '16 at 20:40

0 Answers0