Mobile app version of vmapp.org
Login or Join
Vandalay111

: Display facebook.com in browser adress bar but display another site content in body I want to display example: https://www.facebook.com in my members browser address bar but display another site

@Vandalay111

Posted in: #Htaccess #UrlRewriting

I want to display example: www.facebook.com in my members browser address bar but display another site content in my webpage body.

I want to use .htaccess file.

RewriteEngine on
RewriteCond %{HTTP_HOST} facebook.com$ [NC]
RewriteRule ^(.*)$ /page.php [R=301,L]


Not work.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Vandalay111

1 Comments

Sorted by latest first Latest Oldest Best

 

@Dunderdale272

Anybody who tries to visit www.facebook.com/ will be directed to Facebook itself - that's controlled by the browser & DNS. Your rewrite rule would only work if you actually had control of the facebook.com domain.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme