سؤال

Here is my rewrite on conf

url.rewrite-once = (
    "^/([^/\.]+)/?$" => "/post.php?p=$1"
)

I need http://nullfix.com/digisales/ and http://nullfix.com/digisales to work both with or without slash at the end can it be done?

What Am i doing wrong im bad on regex stuff... please help!

هل كانت مفيدة؟

المحلول

Remove the caret ^ from the begining of the regex:

"/([^/\.]+)/?$" => "/post.php?p=$1"
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top