Forum Moderators: phranque

Message Too Old, No Replies

Mod-Rewrite Rules not working.

         

duckxtales

10:03 pm on Feb 18, 2007 (gmt 0)

10+ Year Member



Hi I have the following and its not working. I want users when they enter in ^a([0-9]+)$ get redirected to the link below. I'm not sure what does the last 3 lines do but its there because the CMS put it there.

Options All -Indexes
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^a([0-9]+)$ /home/p2_articleid/$1 [R]

RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule ^(.*) index.php

[edited by: jatar_k at 10:12 pm (utc) on Feb. 18, 2007]
[edit reason] no urls thanks [/edit]

jdMorgan

3:18 pm on Feb 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Please define "not working". What happens when you request a URL that should match your rule? What did you expect to happen? How do these differ?

I don't see anything particularly "wrong" with your rule, except that the second Options line is redundant, since you specified "All" in the first one, and that it is usual to specify a full URL in a redirection rule.

Jim