• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • Last Modified:

Redirecting automatically from the domain to facebook page

Hi,

Redirecting automatically from the domain to  facebook page. The web server is apache. What was the procedure/file to fiddle? htaccess?
0
jazzIIIlove
Asked:
jazzIIIlove
  • 4
  • 2
1 Solution
 
Lucas BishopClick TrackerCommented:
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
 
jazzIIIloveAuthor Commented:
Too bad, the answer came this late


HTML & JavaScript Code:
<script type="text/javascript">
<!--
window.location = "http://www.facebook.com/"
//-->
</script>
0
 
jazzIIIloveAuthor Commented:
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
Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

 
Lucas BishopClick TrackerCommented:
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
 
jazzIIIloveAuthor Commented:
I want this question to be reopened and half the points should go to the expert.
0
 
jazzIIIloveAuthor Commented:
Expert can get whole points
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now