Regular expression – there is no slash

How will I make this rule so that you can access it with and without slashes?

RewriteRule ^members/([^/]+)$members.php?id=$1 [L]

RewriteRule ^members/([^/]+)/?$members.php?id=$1 [L]

Just added “/?” and finally said to find a trailing slash but? Say it doesn’t have to be there.

How would I make this rule so that you can access it with and without slashes?

RewriteRule ^members/([^/]+)$members.php?id=$1 [L]

RewriteRule ^members/([^/]+)/?$members.php?id=$1 [L]

I just added “/?” Find a trailing slash but? Say it doesn’t have to be there.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5448 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.