Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

.htaccess file?

Status
Not open for further replies.

Mr. DeletedMr. Deleted is verified member.

DNForum Mod
Legacy Exclusive Member
Joined
Jul 24, 2004
Messages
4,342
Reaction score
634
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>
 

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]
 

dcristo

Level 9
Legacy Exclusive Member
Joined
Feb 25, 2005
Messages
3,709
Reaction score
151
Are you referring to creating a custom 404 error page?
 
Status
Not open for further replies.

The Rule #1

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

Premium Members

Latest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom