Solved

send subfolder access to an index page within the subfolder using htaccess

Posted on 2011-03-03
3
390 Views
Last Modified: 2012-05-11
Hi,

I've played around with this with no success, hoping someone has the answer!  Basically we have a sub folder on our site:

www.mysite.com/folder

when people go to /folder or /folder/ I want it to load the index page for that folder:

www.mysite.com/folder/index.php

I've tried 301 combinations and rewrites but my knowledge of htaccess is rubbish... the best I've managed is for the url to repeat on itself because the page I want it to go to is inside the folder I'm setting a redirect for...

Please help!

Thanks,
Matt
0
Comment
Question by:RowdyBurns
  • 3
3 Comments
 
LVL 12

Expert Comment

by:mwochnick
ID: 35030266
Probably should put this in the Apache Web Server zone
0
 
LVL 12

Accepted Solution

by:
mwochnick earned 500 total points
ID: 35030371
try this
RedirectMatch ^/$ /index.php

Open in new window

0
 
LVL 12

Expert Comment

by:mwochnick
ID: 35030393
here's some documentation on it http://httpd.apache.org/docs/2.0/mod/mod_alias.html
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How do we balance the user experience (UX) with reasonable security measures? It can be done, if you keep these fundamentals in mind.
Knowing where your website is hosted is as important as the features you receive, the monthly fee, and the support you receive. Due diligence should be done when choosing your next hosting provider.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question