我有这样的网址:
def gui():
cmds.window()
cmds.columnLayout( adjustableColumn=True )
#since density support only upto 3 setting max to 3
getCurrentInd = int(cmds.getAttr("fluidShape1.densityMethod"))
cmds.intSlider( min=0, max=3, value=getCurrentInd, step=1, cc=updateDens)
cmds.showWindow()
def updateDens(value):
cmds.setAttr("fluidShape1.densityMethod", value)
gui()
我尝试使用以下RewriteRules解析这些网址,但它们无法正常工作。
http://domain.com/database/movie/jurassic-park.1224.html
http://domain.com/artist/bruno-mars.104.html
谁能帮我解决错误?
答案 0 :(得分:0)
请尝试以下规则:
RewriteEngine On
RewriteRule movie/(.+?)\.(\d+)\.html$ index.php?area=movies&id=$2 [L,QSA,NC]
RewriteRule artist/(.+?)\.(\d+)\.html$ index.php?area=people&id=$2 [L,QSA,NC]