Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2011-03-03
3
Medium Priority
?
402 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Read on to get a few ideas on how to promote your next corporate event.
Whoever said that “a picture is worth one thousand words” observed a fact that can dramatically affect your marketing success. Most people tend to learn visually, so many publishers commonly acknowledge the effectiveness of visual learning by using…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

705 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