Forum Moderators: phranque

Message Too Old, No Replies

SE friendly URLs

mod_rewrite question

         

Captain Morgan

8:21 pm on Oct 15, 2005 (gmt 0)

10+ Year Member



Hi, All!

I am very new to this.

I am trying to achieve friendly URLs, when I upload the code to correct directory nothing is happening:(

I am just not sure about this.

Here is the code I am working with
RewriteEngine on
RewriteRule ^games/([_A-Za-z0-9-]+)/?$ index.php?action=playgame&title=$1
RewriteRule ^categories/([_A-Za-z0-9-]+)/([0-9]+)-([0-9]+)/?$ index.php?action=browse&catname=$1&page=$2&limit=$3 [S=1]
RewriteRule ^categories/([_A-Za-z0-9-]+)/?$ index.php?action=browse&catname=$1
RewriteRule ^search/([_A-Za-z0-9-]+)/([0-9]+)/?$ index.php?action=browse&searchterm=$1&page=$2 [L]

THANKS for any help!
Joe

encyclo

1:40 am on Oct 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When you say that nothing is happening, do you mean that when attempting to view the rewritten URLs they return a 404 not found error? This may be too obvious, but have you altered your application or CMS to generate the appropriate URLs in the first place?