Solved

Redirecting automatically from the domain to  facebook page

Posted on 2015-02-03
7
188 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
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.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

776 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