![]() |
![]() |
![]() |
||||
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 |
Retired
Industry Role:
Join Date: Dec 2002
Posts: 21,263
|
mod_rewrite question
Is there anyway to direct the wildcards to my 404 so it sends the 404 header?
for instance.. blah.domain.com or just domain.com hit 404 so if say... google spider requests a wildcard, or just domain.com, or a page that doesnt exist, it gets the 404 page?
__________________
2 lifeguards for Jessica |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
|
You would rather allow Google to spyder and give you the traffic based on the domain... Unless it is only going to be getting duplicate content. If it isn't going to be getting duplicate content then you would allow it to come in...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
|
If it was going to be duplicate content then you would want to help yourself out SE wise and do a 301 so the SE's will give you credit.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Retired
Industry Role:
Join Date: Dec 2002
Posts: 21,263
|
i dont want to do anything except what I asked about... does anyone know how to do it?
__________________
2 lifeguards for Jessica |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Viva la vulva!
Join Date: Mar 2003
Location: you can't please everyone, so you got to please yourself
Posts: 16,557
|
Would something like this work?
ErrorDocument 404 http://domain.com/404.html RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC] Rewriterule (.*) http://www.domain.com/$1 [R=404] 404 goes to your page without www Rewrite adds the www and returns 404. Also catches any referrals without www. Or this just goes to root: ErrorDocument 404 http://domain.com/ RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC] Rewriterule (.*) http://www.domain.com/ [R=404] or 404 page: ErrorDocument 404 http://domain.com/ RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC] Rewriterule (.*) http://www.domain.com/404.html [R=404] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Retired
Industry Role:
Join Date: Dec 2002
Posts: 21,263
|
thanks mikey
I'll give those a try ![]()
__________________
2 lifeguards for Jessica |
![]() |
![]() ![]() ![]() ![]() ![]() |