Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
issue with pdf generation 2 85
String format issue 13 90
doubleChar java challenge 7 102
how to hide hide popup page refresh second time? 10 110
Cloud-based technologies and services will continue to grow in popularity in 2017 thanks to the simple, scalable and cost-effective solutions they deliver. Here are three areas where cloud adoption is poised to really take off.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 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

20 Experts available now in Live!

Get 1:1 Help Now