Josh wrote:
> how can i add slash to virtual directory?
> i put this rule in htaccess
> RewriteRule ([^/]+)/$ /index.php?id=$1 [T=application/x-httpd-php,last]
> and www.example.com/dir/ redirect to www.example.com/index.php?id=1
> but www.example.com/dir return a 404
>
Try this:
RewriteRule ([^/]+)/?$ /index.php?id=$1 [T=application/x-httpd-php,last]
--------------------^
Note the "?" after the slash.
--
Justin Koivisto -
spam@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.