[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 485
  • Last Modified:

mod_rewrite translate Lower Case url to Upper Case dir

http://www.domain.com/someotherdir is the link that has been printed on millions of catalogs. http://www.domain.com/SomeOtherDir is the actual directory.  What would the rewrite rule look like to make sure apache redirects to the right directory.   AND is there a rule to write that would cover similar situations in the future.
0
iceman19330
Asked:
iceman19330
1 Solution
 
ravenplCommented:
#.htaccess

Options +FollwoSymLinks
RewriteEngine On
RewriteRule ^someotherdir(.*) SomeOtherDir$1 [L]

You could also enable the http://httpd.apache.org/docs/2.0/mod/mod_speling.html - yet there were reports it's slow on missed URLs.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now