HTML Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherHTML Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old November 4th, 2003, 07:54 PM
nedesign nedesign is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 36 nedesign User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Lightbulb REDIRECT CODE NEEDED!

Hello,

I would like to find someone who could give me the code for a redirect.

I am hosted on a linux/apache server and I want my short url to redirect to the long url as seen when you click on this: http://google.com

Thanks if you have this information,

-Aaron

Last edited by nedesign : November 5th, 2003 at 12:32 PM.

Reply With Quote
  #2  
Old November 5th, 2003, 07:29 PM
digitalpoint's Avatar
digitalpoint digitalpoint is offline
Contributing User
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Aug 2003
Location: San Diego • USA
Posts: 1,276 digitalpoint User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 21 m 55 sec
Reputation Power: 7
Put this in your .htaccess file for your http://yourdomain.com site:

Redirect 301 / http://www.yourdomain.com/this_is_my/long_url.html

Wrong forum BTW...

- Shawn

Reply With Quote
  #3  
Old November 5th, 2003, 07:36 PM
nedesign nedesign is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 36 nedesign User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Talking

Yes, but this forum is well visited sorry, there was a great need thanks.

Reply With Quote
  #4  
Old November 6th, 2003, 03:13 AM
Gringo's Avatar
Gringo Gringo is offline
Moderator
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Jan 2003
Location: Madrid, Spain
Posts: 1,382 Gringo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 10 sec
Reputation Power: 7
This will also work ...

RewriteCond %{HTTP_HOST} ^yourdomain\.com [NC]
RewriteRule ^(.*) http://www.yourdomain.com/$1 [R=301,L]

Gringo.

P.S. And post changed to correct forum.

Last edited by Gringo : November 6th, 2003 at 03:17 AM.

Reply With Quote
  #5  
Old November 6th, 2003, 10:38 PM
nedesign nedesign is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 36 nedesign User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Yep, thanks gringo a mod_rewrite fixed it and now I am ready to rock!

Thanks,

-Aaron

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherHTML Coding > 301 redirect code needed


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT