Solved

Redirecting automatically from the domain to  facebook page

Posted on 2015-02-03
7
183 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
  • 4
  • 2
7 Comments
 
LVL 16

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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 16

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
XAMPP 14 40
wordpress limitations 4 91
Change local server setting in php 6 62
HHTP and HTTPS redirect question 3 57
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now