• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Interesting mod rewrite issue

I'm trying to use htaccess to rewrite

The code I'm using:
RewriteEngine on
RewriteRule ^foo.js/(.+)$ codeigniter/someclass [L,QSA]
This shows codeigniter's 404 error.

Now, the problem is not htaccess, because when testing with
RewriteEngine on
RewriteRule ^foo.js/(.+)$ codeigniter/test.php [L,QSA]
everything works fine.

CI is set up with /index/ being hidden and I've tried the default codeigniter/index/someclass as well.

I also tested full urls, like so:
RewriteEngine on
RewriteRule ^http://domain.com/foo.js/(.+)$ http://domain.com/codeigniter/someclass [L,QSA]
Redirection works, but the new url is disclosed

Any ideas how to get around this?
Thanks for your time.

Messages In This Thread
Interesting mod rewrite issue - by El Forum - 09-17-2012, 09:28 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.