Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 2312 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

mod_rewrite Beginner's Problems

Thread title: mod_rewrite Beginner's Problems
Closed Thread    
    Thread tools Search this thread Display Modes  
07-12-2006, 05:54 AM
#1
Jon Mooring is offline Jon Mooring
Status: I'm new around here
Join date: Jan 2005
Location:
Expertise:
Software:
 
Posts: 14
iTrader: 0 / 0%
 

Jon Mooring is on a distinguished road

  Old  mod_rewrite Beginner's Problems

.htaccess file:
Code:
RewriteEngine on
RewriteRule /([a-z]+) /index.php?module=$1
Theoretically, //localhost/eworkinfo/login should redirect to //localhost/eworkinfo/index.php?module=login. However, it seems that I did something wrong. The .htaccess file is located in //localhost/eworkinfo, for reference. Let me know if you guys have any ideas. I have checked my phpinfo() to ensure that mod_rewrite is activated.

07-12-2006, 06:59 AM
#2
Garrett is offline Garrett
Status: Waving
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 2,694
iTrader: 11 / 100%
 

Garrett is on a distinguished road

Send a message via MSN to Garrett

  Old

Code:
RewriteEngine On
RewriteRule ^(.*)/$ index.php?module=$1
Is all you need, no need for ([a-z]+)

07-13-2006, 03:51 AM
#3
Jon Mooring is offline Jon Mooring
Status: I'm new around here
Join date: Jan 2005
Location:
Expertise:
Software:
 
Posts: 14
iTrader: 0 / 0%
 

Jon Mooring is on a distinguished road

  Old

It still refuses to work.. What are the exact steps to enabling mod_rewrite on my Apache server? Maybe I did something wrong. I'm running 2.2, for reference.

07-13-2006, 03:56 AM
#4
Garrett is offline Garrett
Status: Waving
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 2,694
iTrader: 11 / 100%
 

Garrett is on a distinguished road

Send a message via MSN to Garrett

  Old

Originally Posted by Jon Mooring
It still refuses to work.. What are the exact steps to enabling mod_rewrite on my Apache server? Maybe I did something wrong. I'm running 2.2, for reference.
On your server? Or computer?

Add me on MSN I may be able to help.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed