У меня есть следующая страница: www.domain.com/index.php?route=information/contact
, и я хотел бы переписать ее так, чтобы она отображалась как: www.domain.com/contact
, но есть еще ...
Что важно, это когда кто-товведите www.domain.com/contact
, он перенаправляет их на www.domain.com/index.php?route=information/contact
, который, в свою очередь, переписывается как www.domain.com/contact
.
Я ценю любую помощь!Спасибо.
Редактировать: Чтобы уточнить
Я хочу, чтобы пользователи могли вводить www.domain.com/contact
и перенаправляться на www.domain.com/index.php?route=information/contact
.
Однакопосле перенаправления я бы хотел чисто эстетическое переписывание , чтобы www.domain.com/index.php?route=information/contact
отображалось как www.domain.com/contact
(так же, как они вводили.)
Возможно ли это?
Редактировать: Мой файл .htaccess в настоящее время ...
Options +FollowSymlinks
# Prevent Directoy listing
Options -Indexes
# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini)">
Order deny,allow
Deny from all
</FilesMatch>
# SEO URL Settings
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^index\.php$ http://www.domain.com/? [R=301,L]
### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling, then restore the # as this means your host
doesn't allow that.
# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This
may work to disable it:
# php_flag register_globals off