Q
Q
Qubert2014-01-19 14:06:12
PHP
Qubert, 2014-01-19 14:06:12

Mod_rewrite, it's not entirely clear why it doesn't work?

Hello!
made this .htaccess:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/([az]*) /index.php?theme=$1
But the links still continue be of the form:
mysite.info/?theme=dictionary
and I would like:
mysite.info/dictionary
Thank you very much!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Q
Qubert, 2014-01-19
@Qubert

Forwarded to RewriteRule ^(.[^/]*)$ /index.php?theme=$1 [QSA]
lol!

W
WEBIVAN, 2014-01-19
@WEBIVAN

From the fact that you prescribe such rules, links on the site will not change their appearance.
Links must be changed in the CMS code.
These rules just allow urls like mysite.info/dictionary to be treated like mysite.info/?theme=dictionary

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question