Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-17-2006, 04:28 PM   #1
minusonebit
So Fucking Banned
 
Join Date: Feb 2006
Posts: 7,391
Need Some htaccess Help

Ok, so here is the situation.

I have a blog, at domain.com/blog. A while ago, I registered domain.us that I want to use for the blog and devote the entire site to it. The new blog is up and running so I want to redirect the old one to it. The old one was powered by Blogger, which left hundreds of files on the server.

I have tried the following (in an htaccess file on the old domain in the blog directory): "redirect / http://www.domain.us

But this dosent work right. It redirects hits to the index file properly, but if I visit, say domain.com/blog/this_perma_link_or_that_one.htm, it redirects to domain.us/this_perma_link_or_that_one.htm

How do I just redirect all traffic to a given directory and all directories under it to a specified URL, in this case to the index of domain.us.
minusonebit is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2006, 04:29 PM   #2
StickyGreen
.
 
StickyGreen's Avatar
 
Industry Role:
Join Date: Oct 2003
Posts: 13,076
there are plenty of ways to redirect without using htaccess...
StickyGreen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2006, 04:35 PM   #3
minusonebit
So Fucking Banned
 
Join Date: Feb 2006
Posts: 7,391
Quote:
Originally Posted by StickyGreen View Post
there are plenty of ways to redirect without using htaccess...
Yes, I know about meta refresh, but thats antiquated and I dont want to edit all of the 100s of files that blogger made.
minusonebit is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2006, 06:17 PM   #4
Cyber Fucker
Hmm
 
Cyber Fucker's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: On an endless road around the world for rock and roll.
Posts: 12,642
bump for you
__________________
Cyber Fucker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2006, 07:10 PM   #5
minusonebit
So Fucking Banned
 
Join Date: Feb 2006
Posts: 7,391
Wow, I am amazed that with all the genius we have floating around here, no one knows anything about .htaccess files? Damn, this industry is losing its edge. LOL
minusonebit is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2006, 03:48 PM   #6
bobby666
boots are my religion
 
bobby666's Avatar
 
Join Date: Nov 2005
Location: Heart of europe
Posts: 21,765
maybe they are all just fuckin their bitches, as i will do now
__________________
bobby666 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2006, 03:50 PM   #7
ramstein
Confirmed User
 
Join Date: Dec 2006
Posts: 127
Does it help?
http://www.htaccesstools.com/
ramstein is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2006, 03:54 PM   #8
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
something like

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2006, 04:40 PM   #9
J.P.
Confirmed User
 
Join Date: Jun 2004
Posts: 689
The above example redirects all the traffic from one domain to another. As I understand, he wants to redirect /blog/ directory only, am I right?
__________________
Webmasters! Looking for new affiliate programs to promote?
Affiliate Program Search <-- Search for programs with FHGs, RSS feed, specific niche sponsors, ...
J.P. is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2006, 04:45 PM   #10
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
Put the one I posted in the /blog/directory and it should work as advertised. I haven't had a chane to test it exactly like that.. my server's nic card has been going up and down.
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2006, 04:48 PM   #11
J.P.
Confirmed User
 
Join Date: Jun 2004
Posts: 689
Oh yes fusionx, you're right. I totally forgot he's talking about .htaccess, I always put all my mod_rewrites inside <VirtualHost>
__________________
Webmasters! Looking for new affiliate programs to promote?
Affiliate Program Search <-- Search for programs with FHGs, RSS feed, specific niche sponsors, ...
J.P. is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.