Solved

RewriteRule too broad

Posted on 2006-10-31
1
288 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
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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

Suggested Solutions

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

713 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