-3

URL から疑問符を削除するのに問題があります。

URL は次のようになります: www.mydomain.com/development/p/?user=me

しかし、私はそれが次のようになりたいです:

URL は次のようになります: www.mydomain.com/development/p/me

私はこのhtaccessファイルを持っています:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} YOURSTRING=(.*)
RewriteRule ^(.*)$ /development/p/$1? [R=301,L]
 </IfModule>

助言がありますか?

4

1 に答える 1

0

*will only work if you enable mod_rewrite in httpd.conf* create a .htaccess file in the root directory and put this in it:

Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^ index.php%{REQUEST_URI} [L]
于 2013-08-31T22:11:15.963 に答える