![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
So Fucking Banned
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
.
Industry Role:
Join Date: Oct 2003
Posts: 13,076
|
there are plenty of ways to redirect without using htaccess...
__________________
Refer Cam Girls and Take Home 10% of Everything They Make For Life |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
So Fucking Banned
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Hmm
Industry Role:
Join Date: Sep 2005
Location: On an endless road around the world for rock and roll.
Posts: 12,642
|
bump for you
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
So Fucking Banned
|
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
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
boots are my religion
Join Date: Nov 2005
Location: Heart of europe
Posts: 21,765
|
maybe they are all just fuckin their bitches, as i will do now
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Dec 2006
Posts: 127
|
Does it help?
http://www.htaccesstools.com/ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
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] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
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, ... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
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, ... |
![]() |
![]() ![]() ![]() ![]() ![]() |