Solved

Using modrewrite to redirect folder

Posted on 2008-06-25
2
241 Views
Last Modified: 2011-09-20
Hello I have this folder http://www.mydomain.com/eng/folder/ and I would like ANY content in there, to be redirected to http://www.mydomain.com

Thanks.
0
Comment
Question by:ametrade
[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
2 Comments
 
LVL 20

Accepted Solution

by:
virmaior earned 500 total points
ID: 21874514
RewriteEngine On
RewriteRule ^.*$ http://www.mydomain.com [R]

place that in a .htaccess in the http://www.mydomain.com/eng/folder/ directory

0
 

Author Closing Comment

by:ametrade
ID: 31470591
Thank you!
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

726 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