Solved

RewriteRule too broad

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Forward apache log to Syslog-NG 7 90
Running Guacamole on port 80 5 214
Apache SSL and mod_rewrite not working 8 160
setup wamp server for first time 2 74
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…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

810 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