answered question
0
Votes
Votes
5
Answers
Answers
M$1.00
How do I create a redirect on my sever to another url?
I remember adding something to my .htacess file where I could forward a page on my site:
ex. nichm.com/skype > http://skype.com
What's the code?
ex. nichm.com/skype > http://skype.com
What's the code?
answers (5)
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
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?
But any ideas on how I can get stats on how many people have gone through my link?
Redirect 301 /skype http://www.skype.com
How do I specify which url I use forwards? Like if I wanted to use
nichm.com/monkeys > monkeys.com
?
nichm.com/monkeys > monkeys.com
?
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
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
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
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
Please disregard, cannot use code in Mahalo Answers.
you should be too... this is a good enhancement to be sent off to feedback@mahalo.com
good call, i'll shoot them an email
Related questions
140 characters left













http://www.google.com/analytics/