Solved

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

Posted on 2011-03-03
3
384 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
Comment Utility
Probably should put this in the Apache Web Server zone
0
 
LVL 12

Accepted Solution

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

Open in new window

0
 
LVL 12

Expert Comment

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video discusses moving either the default database or any database to a new volume.

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now