Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.
Daily Diamond

.htaccess file?

Status
Not open for further replies.

Mr. Deleted

DNForum Mod
Legacy Exclusive Member
Joined
Jul 24, 2004
Messages
4,272
Reaction score
589
can someone help me by creating a .htaccess file for my sites. I used one that redirected ALL the traffic on my servers to this other site, so I can have that, and when I directed it to a site on my host, it kept refreshing the page in an endless loop, causeing my host to be down for a DAY! Anyway For this site, I have some sites that I do not want redirected, but there I want all 404 errors to go to a site on my host. If you can make this file, I'll donate some F$ for it :cheeky:

PHP:
<IfModule mod_rewrite.c>
RewriteEngine on

RewriteRule ^(.*)$ http://www.geocity.org/ [R=301,L]

</IfModule>
 
Domain Days 2024

OgieOgalthorpe

Level 6
Legacy Platinum Member
Joined
Jun 27, 2004
Messages
684
Reaction score
0
I am not sure how you'd do this for all sites on your server, but if you need to redirect one at a time try something like this.

Code:
RewriteEngine on 
RewriteCond %{HTTP_HOST} ^siteA\.com
RewriteRule ^(.*)$ http://www.siteB.com/$1 [R=permanent,L]
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Sedo - it.com Premiums

IT.com

Premium Members

Premium Members

MariaBuy

Our Mods' Businesses

UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom