-3

I'm having problem removing the question marks from my url.

Now the URL looks like this: www.mydomain.com/development/p/?user=me

But I want it to be like this:

Now the URL looks like this: www.mydomain.com/development/p/me

I have this htaccess file:

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

Any suggestions?

4

1 回答 1

0

*仅当您在 httpd.conf 中启用 mod_rewrite 时才有效* 在根目录中创建一个 .htaccess 文件并将其放入其中:

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 回答