944,051 Members | Top Members by Rank

Oct 6th, 2005
0

Need some help with .htaccess rediret...

Expand Post »
Ok so here's the thing I have a site with the directory /forum/

If you go to that directory it shows a directory listing. This is not something that I want. The reason for this directory showing though is because the index page is .php.

I was told that I could use a .htaccess file to change the DirectoryIndex choice to .php, but I was also told that I could use a redirect.

I have tried both. Last night I was told that I needed to do something with/to the server because my site uses a .net domain. Is this true has? does anyone else know anything about this?

All I want this file to do is take www-mysite-/forum to www-mysite/forum/index.php

These are 2 of the different variations that I have tried.
But neither of these or anyother .htaccess worked

 DiretoryIndex index.php
 Redirect /forum htt://mysite/forum/index.php

Any help with this would be appreciated
Similar Threads
Reputation Points: 35
Solved Threads: 9
Posting Whiz in Training
Lightninghawk is offline Offline
288 posts
since Jun 2005
Oct 6th, 2005
0

Re: Need some help with .htaccess rediret...

I moved this thread; it's not a JavaScript programming question. I think you'll get better responses in the Server Configuration forum.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Oct 6th, 2005
0

Re: Need some help with .htaccess rediret...

Thanks. I wasn't quite sure where to put it. But I figured it would fit in with the HTML and all the other somewhere, but thanks
Reputation Points: 35
Solved Threads: 9
Posting Whiz in Training
Lightninghawk is offline Offline
288 posts
since Jun 2005
Oct 7th, 2005
0

Re: Need some help with .htaccess rediret...

ok.. guys you can forget .htaccess

I have a small HTML file that you will like to view

At this Topic I posted on an easy way to hide a directory or redirect from a directory or old page.
Reputation Points: 35
Solved Threads: 9
Posting Whiz in Training
Lightninghawk is offline Offline
288 posts
since Jun 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Servers and Apache Forum Timeline: Redirecting a Directory or page...
Next Thread in Linux Servers and Apache Forum Timeline: INTERNAL Webserver help....





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC