0
我在.htacess文件中寫入了URL重寫代碼。我想從/CodecanyonSocial/settings.php重定向到/CodecanyonSocial/index.php?a=profile & u =用戶名 所以我已經完成了重寫代碼。但它不起作用。這裏CodecanyonSocial是base(main)文件夾(站點位於CodecanyonSocial文件夾中)。重寫後URL重定向失效
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^CodecanyonSocial/index.php?a=profile&u=([A-Za-z0-9-]+)/?$ CodecanyonSocial/settings.php [QSA,L]
</IfModule>
什麼是你想要在你的瀏覽器中的網址是什麼? – anubhava
你想從'/ CodecanyonSocial/settings.php'重定向到'/CodecanyonSocial/index.php?a = profile&u = username'。 'username'在這個重定向中獲得了什麼值? – mesutozer
它位於本地主機和文件夾是CodecanyonSocial – user3131633