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, 05:54 AM   #1
nexcom28
So Fucking Banned
 
Join Date: Jan 2005
Posts: 3,716
Redirect to index page

I have several hundred pages in loads of directories. How do I set it up so they all get redirected to www.domain.com/index.html?

Thanks
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, 05:55 AM   #2
cranki
Confirmed User
 
Join Date: Feb 2005
Location: Café del Mar
Posts: 5,162
se-spam? ;)
cranki 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, 05:57 AM   #3
XAKEP
Ask me about negative cash flow
 
Join Date: Aug 2003
Posts: 518
Add this to .htaccess , add .htaccess to each of those directories.
Redirect 301 / http://www.domain.com/index.html
XAKEP 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, 05:59 AM   #4
Gungadin
Confirmed User
 
Join Date: Aug 2005
Location: O&A PARTY ROCK
Posts: 444
Put this in .htaccess in the same directory as your index

RewriteRule .* index.html [QSA,L]
Gungadin 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, 06:00 AM   #5
Dalai lama
Strength and Honor
 
Join Date: Jul 2004
Location: Europe
Posts: 16,540
Lot of good tips here already
__________________

A program you can trust.
Gallerybooster Run multiply TGPs of 1 script
Dalai lama 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, 06:00 AM   #6
XAKEP
Ask me about negative cash flow
 
Join Date: Aug 2003
Posts: 518
Quote:
Originally Posted by Gungadin
Put this in .htaccess in the same directory as your index

RewriteRule .* index.html [QSA,L]
This will ensure his pages are un-indexed from search engines.
XAKEP 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, 06:02 AM   #7
nexcom28
So Fucking Banned
 
Join Date: Jan 2005
Posts: 3,716
So, just create a .htaccess file and add the following code to all directories?
Code:
Redirect 301 / http://www.domain.com/index.html
If I use this do I need to create multiple .htaccess files, one for each dir?
Code:
RewriteRule .* index.html [QSA,L]
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, 06:03 AM   #8
nexcom28
So Fucking Banned
 
Join Date: Jan 2005
Posts: 3,716
Quote:
Originally Posted by XAKEP
This will ensure his pages are un-indexed from search engines.
I don't want my pages unindexed
nexcom28 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.