views:

50

answers:

1

I have an .htaccess file set up like so:

RewriteEngine on
RewriteRule ^home/    /member.php [L]

So when users type http://domainname.com/home/ it goes to the member page, but when they type http://domainname.com/home I get a 404 error.

What am I doing wrong?

A: 

Because your rule only applies if a / is added after the home part.

Off the top of my head, this should do it:

RewriteEngine on 
RewriteRule ^home(/)? /member.php [L]
Litso
But this is giving me Internal Error when i put thisRewriteEngine on RewriteRule ^home(/)? /member.php [L] RewriteRule ^folder(/)? /folder.php [L]RewriteRule ^gallery(/)? /gallery.php [L]Only home works remaining folder and gallery are getting 500 Error
RagZ