justrid Posted August 21, 2015 Share Posted August 21, 2015 Hello! I have page mysite.com/news?&id_annonce=2 I want page like mysite.com/news/2 Add code in htaccess: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^news/([0-9]+)$ news?&id_annonce=$1 [L,QSA] But if won't work.. Please, help me. Link to comment Share on other sites More sharing options...
NemoPS Posted August 22, 2015 Share Posted August 22, 2015 It's not so easy, sadly You need to create a new rule for the dispatcher, or actually change that one for the "news" controller you have. It's not easy at all Link to comment Share on other sites More sharing options...
justrid Posted August 24, 2015 Author Share Posted August 24, 2015 It's not so easy, sadly You need to create a new rule for the dispatcher, or actually change that one for the "news" controller you have. It's not easy at all How can I do this? Any information, links, some code? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now