Author Topic: Any nerds help me troubleshoot mod_rewrite in XAMPP?  (Read 763 times)

0 Members and 1 Guest are viewing this topic.

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
Any nerds help me troubleshoot mod_rewrite in XAMPP?
« on: February 11, 2010, 12:27:44 AM »
I'm trying to do a quick test with mod_rewrite in XAMPP, but I can't seem to get Apache to pay attention. I popped into Apache/conf/httpd.conf and uncommented the "LoadModule rewrite_module modules/mod_rewrite.so" and swapped AllowOverride to All.

I then popped a .htaccess file into root. It reads as such,

RewriteEngine on
RewriteBase /ModReWriteDemos
RewriteRule ^alice.html$ bob.html

for the URL: http://127.0.0.1/ModReWriteDemos/alice.html

Some users experienced trouble without the RewriteBase, but it doesn't work for me either way. What am I missing?
wha

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
Re: Any nerds help me troubleshoot mod_rewrite in XAMPP?
« Reply #1 on: February 11, 2010, 12:43:25 AM »
I have no idea what I'm missing. I dug up 11 tutorials that all tell me the same thing. phpinfo() says mod_rewrite is enabled. I've triple checked my spelling and syntax. .htaccess is in root.

There was no prior .htaccess in the default XAMPP install, so I created one. That shouldn't be an issue, right? Ughghghg
wha

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
Re: Any nerds help me troubleshoot mod_rewrite in XAMPP?
« Reply #2 on: February 11, 2010, 12:48:18 AM »
Fuuu. Solved.

I was doing it on a Korean machine and it was treating it like a .txt file but I couldn't tell because my Korean is bad. Fixed.
wha

Reb

  • Hon. Mr. Tired
  • Senior Member
Re: Any nerds help me troubleshoot mod_rewrite in XAMPP?
« Reply #3 on: February 11, 2010, 02:27:57 AM »
Man, for a moment there I thought you somehow ended up at your old job again.
brb

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
Re: Any nerds help me troubleshoot mod_rewrite in XAMPP?
« Reply #4 on: February 11, 2010, 07:23:32 AM »
Man, for a moment there I thought you somehow ended up at your old job again.

Seconded :lol

Aren't you supposed to be teaching lil' Korean bastards english?

My wife and I started this project. Its a long story. I'll discuss it more when it's almost finished,
wha