GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Redirect to index page (https://gfy.com/showthread.php?t=523528)

nexcom28 10-03-2005 05:54 AM

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

cranki 10-03-2005 05:55 AM

se-spam? ;)

XAKEP 10-03-2005 05:57 AM

Add this to .htaccess , add .htaccess to each of those directories.
Redirect 301 / http://www.domain.com/index.html

Gungadin 10-03-2005 05:59 AM

Put this in .htaccess in the same directory as your index

RewriteRule .* index.html [QSA,L]

Dalai lama 10-03-2005 06:00 AM

Lot of good tips here already

XAKEP 10-03-2005 06:00 AM

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.

nexcom28 10-03-2005 06:02 AM

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 10-03-2005 06:03 AM

Quote:

Originally Posted by XAKEP
This will ensure his pages are un-indexed from search engines.

I don't want my pages unindexed :Oh crap


All times are GMT -7. The time now is 10:13 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123