Solved

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

Posted on 2011-03-03
3
393 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
Building a successful professional career is a long and difficult journey, especially in case if your decisions are not chosen carefully. For example, if you think that you can get to the desired position without experience and apply for it, your ch…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

821 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