Solved

Redirecting automatically from the domain to  facebook page

Posted on 2015-02-03
7
191 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

Suggested Solutions

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…
What You Need to Know when Searching for a Webhost Provider
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

696 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