|
|
|
||||
|
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 |
|
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 |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Feb 2005
Location: Café del Mar
Posts: 5,162
|
se-spam? ;)
|
|
|
|
|
|
#3 |
|
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 |
|
|
|
|
|
#4 |
|
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]
__________________
The GFY popularity contest scoreboard |
|
|
|
|
|
#5 |
|
Strength and Honor
Join Date: Jul 2004
Location: Europe
Posts: 16,540
|
Lot of good tips here already
|
|
|
|
|
|
#6 | |
|
Ask me about negative cash flow
Join Date: Aug 2003
Posts: 518
|
Quote:
|
|
|
|
|
|
|
#7 |
|
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 Code:
RewriteRule .* index.html [QSA,L] |
|
|
|
|
|
#8 | |
|
So Fucking Banned
Join Date: Jan 2005
Posts: 3,716
|
Quote:
|
|
|
|
|