answered question

answers (5)

bugsy
0
Votes
BEST ANSWER  chosen by asker   |  bugsy  |  December 22, 2008 02:25 AM
The .htaccess syntax is
redirect accessed-url new-url

The code is
redirect /skype http://skype.com/

For the first url, it is understood that it's on nichm.com, that's why you use only /skype
Asker's rating:  
Just what I needed, thanks.

But any ideas on how I can get stats on how many people have gone through my link?

Comment
bugsy
bugsy  |  December 22, 2008 02:35 AM
Yes. For the stats, you should use google analytics.

http://www.google.com/analytics/
ankitgu
0
Votes
ankitgu  |  December 22, 2008 02:14 AM
Redirect 301 /skype http://www.skype.com
Comment
nichm
nichm  |  December 22, 2008 02:21 AM
How do I specify which url I use forwards? Like if I wanted to use

nichm.com/monkeys > monkeys.com

?
connectedg...
0
Votes
connectedgeek  |  December 22, 2008 02:18 AM
I asked a couple similar questions earlier.... here are there the links:

http://www.mahalo.com/answers/web-development/how-do-you-alias-a-url-in-drupal

http://www.mahalo.com/answers/web-development/i-need-to-configure-my-primary-home-page-node-to-redirect-to-a-specific-url-using-pathauto-and-url-aliases

Also, from: http://php.about.com/od/learnphp/ht/phpredirection.htm

1. Mahalo will not allow actual code, check out: http://php.about.com/od/learnphp/ht/phpredirection.htm

Change the code on the redirect page to be simply this. You need to replace the URL above with the URL you wish to direct to.

2. Be sure that you do not have any text sent to the browser before this, or it will not work. Your safest bet is to simply remove all content from the page but the redirect code.

Mahalo will not allow actual code, check out: http://php.about.com/od/learnphp/ht/phpredirection.htm
Comment
coba
0
Votes
coba  |  December 22, 2008 02:27 AM
Put this file on your root or any sub directory folder for PHP:-


code not show on mahalo answer

change Location: to your server url, and save in index.php or anyname.php
----
.htaccess command
Redirect from host to host :-
Redirect / http://3xwy.com/index.php

change to any url
Comment
harrisonpo...
0
Votes
harrisonpowers  |  December 22, 2008 02:28 AM
Please disregard, cannot use code in Mahalo Answers.
Comment
connectedg...
connectedgeek  |  December 22, 2008 02:33 AM
you should be too... this is a good enhancement to be sent off to feedback@mahalo.com
harrisonpo...
harrisonpowers  |  December 22, 2008 02:35 AM
good call, i'll shoot them an email
bugsy
bugsy  |  December 22, 2008 02:42 AM
You should use

http://paste2.org/new-paste

for your code in answers.
140

ask any question

Top of Page
Buy Mahalo Dollars
WITH CREDIT CARD OR PAYPAL

Please log in to use this function.