Solved

Redirecting automatically from the domain to  facebook page

Posted on 2015-02-03
7
192 Views
Last Modified: 2015-02-11
Hi,

Redirecting automatically from the domain to  facebook page. The web server is apache. What was the procedure/file to fiddle? htaccess?
0
Comment
Question by:jazzIIIlove
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 17

Accepted Solution

by:
Lucas Bishop earned 500 total points
ID: 40595322
To clarify, are you wanting visitors to www.yourdomain.com to automatically be redirected to your facebook page?

ex. if visitor goes to www.yourdomain.com then send them directly to www.facebook.com/yourpage

If this is the case, then you'd set an redirect rule in the .htaccess file of yourdomain.com:

Redirect 302 / http://facebook.com/yourpage

Open in new window


I put 302 (temporary) in here, in the event that you don't want this to be a permanent redirect and plan to develop the domain sometime in the future.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 40595547
Too bad, the answer came this late


HTML & JavaScript Code:
<script type="text/javascript">
<!--
window.location = "http://www.facebook.com/"
//-->
</script>
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 40597244
I've requested that this question be closed as follows:

Accepted answer: 0 points for jazzIIIlove's comment #a40595547

for the following reason:

The response came too late
0
Schedule a Tour of the ATEN booth at InfoComm 2017

Tour the ATEN booth to see the the Latest Addition to the Modular Matrix Switch Series, New 4K HDMI Over IP Extender and more! Enter ATEN's Ultimate Giveaway Sweepstakes for a chance to win one of several great prizes, including an ATEN US7220 2-Port Thunderbolt 2 Sharing Switch!

 
LVL 17

Expert Comment

by:Lucas Bishop
ID: 40595818
In regards to the javascript redirect you're using, anyone who has script disabled in their browser will not be redirected. They'll just sit on a blank white page, if that's all you have in your index file.

With the 302 redirect, the visitor is sent to the new URL regardless of their browser settings.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 40597245
I want this question to be reopened and half the points should go to the expert.
0
 
LVL 12

Author Closing Comment

by:jazzIIIlove
ID: 40602669
Expert can get whole points
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question