Babb Fest - Debt Consolidation - Mortgage - Final Fantasy - Credit Score

PDA

View Full Version : That Mod_rewrite thing


Trance-formation
Sep 5th 2004, 7:38 pm
I've been trying to mod-rewrite my dynamic urls for my directory at www.deep-mind.com/directory/index.php

I've tried all sorts and currently have the following in a .htaccess file in the directory folder


RewriteEngine On
RewriteBase /
RewriteRule ^([0-9]+)\.html$ index.php?ax=list&cat_id=$1 [L]

Nothings working and the whole mod_rewrite thing seems tortuous :eek: What am I missing (I know the mod_rewrite setup works because I have a working version of Owlcrofts freebie tool that relies on it)

l0cke
Sep 5th 2004, 7:45 pm
I'm no mod_rewrite expert but I think that sytanx is invalid. Try this:

RewriteRule ^([0-9]+)\.html$ /index.php?ax=list&cat_id=$1 [L]

Trance-formation
Sep 5th 2004, 7:52 pm
I'm no mod_rewrite expert but I think that sytanx is invalid. Try this:

RewriteRule ^([0-9]+)\.html$ /index.php?ax=list&cat_id=$1 [L]

No joy :(

I've reached the point of trying variations at chance... I dreamed mod-rewrite last night and should be asleep right now!! :D

bobafind
Sep 5th 2004, 11:06 pm
RewriteRule ^([0-9]+)\.html$ index.php?ax=list&cat_id=$1 [L]

Try this:
RewriteRule ^directory/([0-9]+)\.html$ http://www.deep-mind.com/directory/index.php?ax=list&cat_id=$1 [L]