我在.htacces中挥动了以下代码:
var pageOne = new AR.Trackable2DObject(this.tracker, "*", {
onEnterFieldOfVision: {
AR.context.openInBrowser(url);
}
});
我有xampp工作,该模块在httpd.conf中启用。 我在这个conf中有代码:
Options -MultiViews
RewriteEngine on
RewriteBase /app/
RewriteRule ^login/?$ login.php [NC,L]
RewriteRule ^register/?$ register.php [NC,L]
RewriteRule ^recover/?$ recover.php [NC,L]
RewriteRule ^all/?$ home.php [NC,L]
RewriteRule ^chats/?$ chats.php [NC,L]
RewriteRule ^manage-photos/?$ manage-photos.php [NC,L]
RewriteRule ^friends/?$ friends.php [NC,L]
RewriteRule ^upgrades/?$ upgrades.php [NC,L]
RewriteRule ^profile/([0-9]+)$ profile.php?id=$1 [NC,L]
RewriteRule ^gifts/([0-9]+)$ gifts.php?id=$1 [NC,L]
RewriteRule ^friends/([0-9]+)$ friends.php?id=$1 [NC,L]
RewriteRule ^chat/([0-9]+)$ chat.php?id=$1 [NC,L]
RewriteRule ^page/([0-9]+)$ page.php?id=$1 [NC,L]
RewriteRule ^settings/?$ settings.php [NC,L]
RewriteRule ^preferences/?$ preferences.php [NC,L]
RewriteRule ^profile-views/?$ profile-views.php [NC,L]
RewriteRule ^hot-list/?$ hot-list.php [NC,L]
RewriteRule ^process/([A-Za-z0-9]+)$ process.php?t=$1 [NC,L]
我没有改变这个,所有其他的AllowOverride都是全部! ,是我的问题,在每个链接上我找不到对象。 我想要的是www.mydomain.com/site/APP/LOGIN可用,ori www.mydomain.com/site/APP/LOGIN/profile/20而不是profile.php?id = $ 1。 TY
答案 0 :(得分:0)
RewriteBase subfolder/app/
RewriteRule login/?$ login.php [NC,L]
因为所有内容都在子文件夹中:)