Solved

RewriteRule too broad

Posted on 2006-10-31
1
284 Views
Last Modified: 2010-03-04
Hello,

I put this in my .htaccess file:

              RewriteEngine on
              RewriteRule ^admin manage
              RewriteRule ^edit manage

The problem is that
             edit.html
             editing

both are re-written.

I ONLY want the following to be rewrittien:
              admin
              admin/
              edit
              edit/

How?
Thanks!
0
Comment
Question by:hankknight
1 Comment
 
LVL 30

Accepted Solution

by:
callrs earned 500 total points
Comment Utility
Try
            RewriteRule ^admin/?$ manage
              RewriteRule ^edit/?$ manage

http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html   redirecting URLs with Apache’s mod_rewrite
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 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

11 Experts available now in Live!

Get 1:1 Help Now