We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,275 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

URL Redirect

Hey guys, am a newbie and I searched I didn't see this question somewhere. If it exist, forgive me.

I need help in redirecting url. I want to redirect users from www.ammotorllc.com to www.ammotorsllc.com. I want it that when people type the first, it will automatically switch them to the second site. I don't know where to start with this so any detail help will be appreciated.

Thanks, kinda urgent

6
Contributors
6
Replies
3 Weeks
Discussion Span
1 Year Ago
Last Updated
7
Views
ginG3R
Newbie Poster
15 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

You can simply modify your .htaccess file if you are using an Apache server. If your host provides you with cpanel they provide an easy tool to do url redirects. If not, here is a good link that shows you how to do it on your own

ctaylo21
Junior Poster in Training
73 posts since May 2010
Reputation Points: 10
Solved Threads: 11
Skill Endorsements: 0

Hey thanks for the response. I have a question...do I have to own both domain names to be able to setup the redirect? Because right now, I only own www.ammotorsllc.com

ginG3R
Newbie Poster
15 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

if your last domain name is expire you cant do any thing,
but you have old domain and you want redirect it new url,
creat new text file and copy this code and save it index.php then upload it to old domain host public_html or domain root folder

<?php
   header( 'Location: http://www.ammotorsllc.com/' ) ;
?>
amir84
Newbie Poster
8 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

do I have to own both domain names to be able to setup the redirect?

Of course.

pritaeas
Posting Prodigy
Moderator
9,310 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,465
Skill Endorsements: 86

Well technically you do not need to own the second domain name, the one being directed to. But you would need to at least have access to the first server to upload a file that can redirect to the second URL. So you'd definitely have to own/have access to the first one.

weekendrockstar
Junior Poster in Training
71 posts since Dec 2010
Reputation Points: 25
Solved Threads: 16
Skill Endorsements: 0

@ginG3R, you must own and manage www.ammotorllc.com, to be able to redirect it to your new domain name. There are a variety of ways to redirect, .htaccess, URL rewrite, meta tags, etc...

JorgeM
Industrious Poster
4,023 posts since Dec 2011
Reputation Points: 297
Solved Threads: 548
Skill Endorsements: 115

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0741 seconds using 2.7MB