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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-03-2005, 09:41 AM   #1
nexcom28
So Fucking Banned
 
Join Date: Jan 2005
Posts: 3,716
Redirect - The return! Come on you geniuses..

Ok, following on from my earlier thread I am still trying to redirect all my pages to an index.html.

I have several hundred pages to direct
The pages are a mixture of .php and .html
I have no other code in my .htaccess file

These are the peices of code I have tried along with the error message and problem:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^sub.old-domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.old-domain.com$
RewriteRule ^(.*)$ http://www.domain.com/ [R=301,L]
This didn't seem to do anything at all, none of the pages redirected. I tried several different browsers to test it.

RewriteEngine On
RewriteRule (.*) http://www.domain.com
With this I recieve an internal server error on all my pages.

redirect 301 / http://www.domain.com/index.html
This one gives a strange error, something along the lines of 'could not open domain.com/bigboobs.htmlhtmlhtmlhtmlhtmlhtmlhtmlhtmlhtmlhtmlh tmlhtmlhtmlhtmlhtmlhtml

RewriteRule .* index.html [QSA,L]
This doesn't seem to do anything either, again I checked it in different browsers but the pages don't redirect.

Come on you GFY gurus what's the problem here. I bet it's one line of code, something really simple but I don't know it and need help.
nexcom28 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-03-2005, 10:18 AM   #2
nexcom28
So Fucking Banned
 
Join Date: Jan 2005
Posts: 3,716
Bumpity bump... Need some help y'all
nexcom28 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-03-2005, 10:22 AM   #3
viki
Confirmed User
 
viki's Avatar
 
Join Date: Jan 2005
Posts: 2,640
Try this:

Code:
AuthType Basic
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.domain.com [NC]
RewriteRule /* http://www.domain.com/index.html [R,L]
__________________

viki [at] realsexcash [dot] com
228 263 454
viki is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-03-2005, 10:37 AM   #4
nexcom28
So Fucking Banned
 
Join Date: Jan 2005
Posts: 3,716
No that didn't work either. I can't even access the homepage with that code, I get a message saying 'Redirection limit for this URL exceeded. Unable to load requested page' on Firefox

Help
nexcom28 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-03-2005, 10:44 AM   #5
viki
Confirmed User
 
viki's Avatar
 
Join Date: Jan 2005
Posts: 2,640
I just tested it on one of my sites and it works in Firefox and IE, with HTML and PHP pages. Did you place your .htaccess in www.domain.com/.htaccess?
__________________

viki [at] realsexcash [dot] com
228 263 454
viki is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-03-2005, 10:53 AM   #6
Fetish Gimp
Confirmed User
 
Industry Role:
Join Date: Feb 2005
Posts: 1,699
This should do it

Code:
RewriteEngine on
RewriteRule   ^(.*)$  http://yourdomain.com/index.html  [R,L]
__________________
Strapon Seduction - femdom blog | Twitter
Fetish Gimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-03-2005, 12:07 PM   #7
nexcom28
So Fucking Banned
 
Join Date: Jan 2005
Posts: 3,716
Bah!! this doesn't work either, I get the same message as above. Guess i'm just going to have to leave it.
I'm proberbly doing something wrong, just don't know what..
nexcom28 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-03-2005, 12:15 PM   #8
Machete_
WINNING!
 
Industry Role:
Join Date: Oct 2002
Posts: 14,579
http://www.javascriptkit.com/howto/htaccess7.shtml
Machete_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-03-2005, 12:19 PM   #9
Fetish Gimp
Confirmed User
 
Industry Role:
Join Date: Feb 2005
Posts: 1,699
Quote:
Originally Posted by nexcom28
Bah!! this doesn't work either, I get the same message as above. Guess i'm just going to have to leave it.
I'm proberbly doing something wrong, just don't know what..
I'd suggest checking with your host to make sure you're able to redirect with htaccess files. Second, try using full server paths, like

Code:
RewriteEngine on
RewriteRule   ^(.*)$  /usr/home/html/domain.com/index.html  [R,L]
and check
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

good luck!
__________________
Strapon Seduction - femdom blog | Twitter
Fetish Gimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.