On Tue, Apr 22, 2008 at 10:34 AM, Nathan Lane <[EMAIL PROTECTED]> wrote:
> Okay then I must be saying something wrong or I forgot something - I also
> need to create a .htaccess file somewhere and add the rewrite rules right?
> So I guess I need this also:
>
>
> RewriteCond %{REQUEST_URI} ^/([a-z]*)/([0-9]*)$
> RewriteRule ^/(.*)/(.*)$ /index.php?type=$1&id=$2 [NC,QSA,L]
>
Alternatively, you could combine those into a single rewrite rule:
RewriteRule ^/([a-z]*)/([0-9]*)$ /index.php?type=$1&id=$2 [NC,QSA,L]
Although, as was mentioned before, you most likely want add !
directory, ! filename to that:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/([a-z]*)/([0-9]*)$ /index.php?type=$1&id=$2 [NC,QSA,L]
justin
--
http://justinhileman.com
_______________________________________________
UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net