Php 如何使htaccess文件允许变量使用句点?

Php 如何使htaccess文件允许变量使用句点?,php,apache,.htaccess,mod-rewrite,Php,Apache,.htaccess,Mod Rewrite,当我转到下一步是什么/wn\u controller.php?user=john.smith时,它会工作。但是当我转到下一步是什么/john.smith时,它不起作用 我试着用这句话: RewriteRule ^whats-next/([A-Za-z0-9-_]+)$ whats-next/wn_controller.php?user=$1 [NC,L] # Process profiles 为此: RewriteRule ^whats-next/([A-Za-z0-9-\._]+)$ wha

当我转到
下一步是什么/wn\u controller.php?user=john.smith
时,它会工作。但是当我转到
下一步是什么/john.smith
时,它不起作用

我试着用这句话:

RewriteRule ^whats-next/([A-Za-z0-9-_]+)$ whats-next/wn_controller.php?user=$1 [NC,L] # Process profiles
为此:

RewriteRule ^whats-next/([A-Za-z0-9-\._]+)$ whats-next/wn_controller.php?user=$1 [NC,L] # Process profiles
这是:

RewriteRule ^whats-next/([A-Za-z0-9-._]+)$ whats-next/wn_controller.php?user=$1 [NC,L] # Process profiles
但它还没有修复它

下面列出了我的完整.htacess文件

# BEGIN WordPress

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} (.*)$

#RLA Page
RewriteRule ^about/$ whats-next/wn_controller.php [NC,L] # Process about
RewriteRule ^about$ whats-next/wn_controller.php [NC,L] # Process about ##WITHOUT TRAILING DASH URL TOO. FIX SOMEDAY

#What's Next User
RewriteRule ^whats-next/community/$ whats-next/wn_controller.php [NC,L] # Process community
RewriteRule ^whats-next/follow-up/$ whats-next/wn_controller.php [NC,L] # Process follow-up
RewriteRule ^whats-next/people/$ whats-next/wn_controller.php [NC,L] # Process people
RewriteRule ^whats-next/messages/$ whats-next/wn_controller.php [NC,L] # Process messages
RewriteRule ^whats-next/messages([A-Za-z0-9-]+)$ whats-next/wn_controller.php?message=$1 [NC,L] # Process messages
RewriteRule ^whats-next/([A-Za-z0-9-_]+)$ whats-next/wn_controller.php?user=$1 [NC,L] # Process profiles
RewriteRule ^whats-next/settings/$ whats-next/wn_controller.php?user=$1 [NC,L] # Process settings

#What's Next Admin
RewriteRule ^whats-next/admin/$ whats-next/wn_controller.php [NC,L] # Process profiles
RewriteRule ^whats-next/admin$ whats-next/wn_controller.php [NC,L] # Process profiles ##WITHOUT DASH TOO. FIX SOMEDAY

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
#开始WordPress
重新启动发动机
重写基/
重写cond%{REQUEST_FILENAME}-F
RewriteCond%{REQUEST_URI}(.*)$
#RLA页
重写规则^about/$whats next/wn_controller.php[NC,L]#进程关于
重写规则^about$whats next/wn_controller.php[NC,L]#处理关于###也不带尾随的破折号URL。改天
#下一个用户是什么
重写规则^whats next/community/$whats next/wn_controller.php[NC,L]#进程社区
重写规则^whats next/follow-up/$whats next/wn_controller.php[NC,L]#流程跟进
重写规则^whats next/people/$whats next/wn_controller.php[NC,L]#处理人员
重写规则^whats next/messages/$whats next/wn_controller.php[NC,L]#处理消息
重写规则^whats next/messages([A-Za-z0-9-]+)$whats next/wn_controller.php?message=$1[NC,L]#处理消息
重写规则^whats next/([A-Za-z0-9-]+)$whats next/wn_controller.php?用户=$1[NC,L]#流程配置文件
重写规则^whats next/settings/$whats next/wn_controller.php?用户=$1[NC,L]#进程设置
#下一步是什么
重写规则^whats next/admin/$whats next/wn_controller.php[NC,L]#进程配置文件
重写规则^whats next/admin$whats next/wn_controller.php[NC,L]#流程配置文件##也不带破折号。改天
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
#结束WordPress

尝试在
0-9
之后立即拆下仪表板

这对我来说很有效:
^下一步是什么/([A-Za-z0-9.]+)$