Solved

RewriteRule too broad

Posted on 2006-10-31
1
289 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
[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
1 Comment
 
LVL 30

Accepted Solution

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

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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
htaccess file errors for 301 Redirect 4 95
PHP in Apache server 20 106
Bulk Changes to WP permalinks in .htaccess - blog post only 4 154
LINUX CENTOS + APACHE 9 75
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

739 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