IcepickD - 12:41 pm on Aug 27, 2013 (gmt 0) [edited by: Ocean10000 at 2:03 pm (utc) on Aug 27, 2013]
I'm quite new to writing apache rewrite rules.
I have a server with multiple sites on, and only one .htaccess
I'm trying to write a simple redirect rule within a single domain.
This is what I already have and it is working
RewriteRule ^/(.*)$ http://www.example.com/our_business/plastics/pvc-vcm/ [R=301]
What I'm trying to do is redirect everything from "www.example.net/tece" to "www.example.net/some_new_path/"
This is what I have and it is not working
RewriteRule ^/tece$ http://www.example.net/some_new_path/ [R=301]
I have tried numerous regexes, but nothing seems to work. This is only a sample of tried regexes:
"^/$" www.example.net/ going to this address does not trigger the redirect also
Out of desperation I have even tried without starting "/" but nothing I try seems to work. I've checked everything with fiddler and all other redirects I wrote work but this one. It seems like Apache does not even come to the lines where redirect is.
Any ideas on why is this not working? Is there a way to prevent redirects for a certain domain(maybe on some other level), as I'm not the only one that has been working on this server so there might be some other config somewhere, but there is only one .htaccess file, I've checked it.
When trying to go to that URL fiddler and browsers show me 404, and this is what I would expect because there is nothing there, but it does not even try to redirect as far as I can see.
Thanks for all ideas and help in advance!
[edit reason] Examplified [/edit]
[edited by: Ocean10000 at 2:03 pm (utc) on Aug 27, 2013]