View Full Version : Sorta Tech Problem
I think. I have this domain http://www.sexyshemaleporn.com/ that won't resolve when clicked on from a message board, other domains of mine, nor google. Typing the address straight into the address bar brings the site up fine.
This is my htaccess for the site in case it's something in there:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?sexyshemaleporn.com.*$ [NC]
RewriteRule .* http://sexyshemaleporn.com/ [R,L]
AddType application/x-httpd-php .html
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^sexyshemaleporn\.com
RewriteRule ^(.*)$ http://www.sexyshemaleporn.com/$1 [R=permanent,L]
ErrorDocument 400 http://www.sexyshemaleporn.com
ErrorDocument 401 http://www.sexyshemaleporn.com
ErrorDocument 403 http://www.sexyshemaleporn.com
ErrorDocument 404 http://www.sexyshemaleporn.com
ErrorDocument 501 http://www.sexyshemaleporn.com
ErrorDocument 502 http://www.sexyshemaleporn.com
ErrorDocument 503 http://www.sexyshemaleporn.com
I'd be very grateful if anyone knows what the problem is and how to cure it. I'm 95% sure I had a similar problem with another domain of mine, but 100% sure I've forgotten how I may have fixed it :)
yes I think you have screwed it up and you are redirecting to itself and denying it - when you redirect a request it does not change the referer,
I think I read your rules are like this:
rewrite on:
RewriteEngine on
if there is a referer
RewriteCond %{HTTP_REFERER} !^$
and referer is not *.sexyshemaleporn.com
RewriteCond %{HTTP_REFERER} !^http://(www\.)?sexyshemaleporn.com.*$ [NC]
redirect to: http://sexyshemaleporn.com
RewriteRule .* http://sexyshemaleporn.com/ [R,L]
its a loop
Yeah I just spotted that after I posted and changed the htaccess to:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?sexyshemaleporn.com.*$ [NC]
RewriteRule .* http://www.sexyshemaleporn.com/ [R,L]
AddType application/x-httpd-php .html
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^sexyshemaleporn\.com
RewriteRule ^(.*)$ http://www.sexyshemaleporn.com/$1 [R=permanent,L]
ErrorDocument 400 http://www.sexyshemaleporn.com
ErrorDocument 401 http://www.sexyshemaleporn.com
ErrorDocument 403 http://www.sexyshemaleporn.com
ErrorDocument 404 http://www.sexyshemaleporn.com
ErrorDocument 501 http://www.sexyshemaleporn.com
ErrorDocument 502 http://www.sexyshemaleporn.com
ErrorDocument 503 http://www.sexyshemaleporn.com
but it's still trying to crawl up it's own arse by the looks of it. Will have a fiddle and see what it does :)
Bollocks now I've lost the menu include :D I suck at this stuff lol
what r u trying to do with all that stuff anyways it doesn't make much sense ?
mysatin
01-23-07, 06:18 PM
what r u trying to do with all that stuff anyways it doesn't make much sense ?
I can't speak for Jel, but it looks like he is trying to
Stop deep linking into the website - they get sent back to the home page
Allow processing of PHP directives in html files (so you don't have to rename them) - dunno if it has an effect on SEO too?
Turn on symlinks - perhaps there is a shared images folder on the server that several of his sites share
Stop potential 302 style SEO hijacks
Make sure error traffic goes back to homepage to at least try and get some use out of that traffic
For more info on 302 hijacks see http://clsc.net/research/google-302-page-hijack.htm
no idea. I just copy & paste from other htaccess files.
I do:
Want to allow a php include for the 'menu' bar
Send error traffic back to the root
Prevent SES from seing domain.com and www.domain.com as seperate pages
Being totally clueless as to what does what I've no idea if I'm fucking it all up :) (Though the site is working now as I want it to).
Want to allow a php include for the 'menu' bar
Send error traffic back to the root
Prevent SES from seing domain.com and www.domain.com as seperate pages
ok try just this, you may need to set the addtype and options in the httpd.conf, the last rewrite shit looks like a fucked up anti-hotlinking script
Options +FollowSymLinks
AddType application/x-httpd-php .html
ErrorDocument 400 http://www.sexyshemaleporn.com/
ErrorDocument 401 http://www.sexyshemaleporn.com/
ErrorDocument 403 http://www.sexyshemaleporn.com/
ErrorDocument 404 http://www.sexyshemaleporn.com/
ErrorDocument 501 http://www.sexyshemaleporn.com/
ErrorDocument 502 http://www.sexyshemaleporn.com/
ErrorDocument 503 http://www.sexyshemaleporn.com/
RewriteEngine on
RewriteCond %{HTTP_HOST} ^sexyshemaleporn\.com
RewriteRule ^(.*)$ http://www.sexyshemaleporn.com/$1 [R=permanent,L]
Works a treat, thanks spanno :cheers2:
vBulletin v3.5.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.