GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Need Some htaccess Help (https://gfy.com/showthread.php?t=678439)

minusonebit 11-17-2006 04:28 PM

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.

StickyGreen 11-17-2006 04:29 PM

there are plenty of ways to redirect without using htaccess...

minusonebit 11-17-2006 04:35 PM

Quote:

Originally Posted by StickyGreen (Post 11338168)
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.

Cyber Fucker 11-17-2006 06:17 PM

bump for you

minusonebit 11-17-2006 07:10 PM

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

bobby666 12-17-2006 03:48 PM

maybe they are all just fuckin their bitches, as i will do now

ramstein 12-17-2006 03:50 PM

Does it help?
http://www.htaccesstools.com/

fusionx 12-17-2006 03:54 PM

something like

Code:

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


J.P. 12-17-2006 04:40 PM

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?

fusionx 12-17-2006 04:45 PM

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.

J.P. 12-17-2006 04:48 PM

Oh yes fusionx, you're right. I totally forgot he's talking about .htaccess, I always put all my mod_rewrites inside <VirtualHost> :)


All times are GMT -7. The time now is 09:36 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc