3
have the following URL:
http://<site>/application/views/ambiente_teste/assets-teste/...
And I wanted to rewrite it for:
http://<site>/assets-teste/...
I have tried in my . htaccess the following:
RewriteRule ^assets-teste/?$ /application/views/ambiente_teste/assets-teste [NC,L]
But I’m not very experienced at it, so I was wondering if anyone had a solution.
Thanks ^^
ReweiteRule
should beRewriteRule
. Will that?– Zuul
Your URL does not start with Assets-test, then remove this circumflex that the expression starts to marry only backwards and, unless mistaken, will work.
– Bruno Augusto
@Zuul, that was typo here hehe.
– Machado
@Brunoaugusto, solved my problem Thank you very much to both, I am new user, because I did not find the answer I needed, if you want to teach me to give a few points to you in thanks I accept. Thanks :)
– Machado
@Luizfilipemachadobarni You accepted an answer but it does not meet the solution that Bruno stressed and you say have solved your problem :/
– Zuul
@Brunoaugusto Put an answer with your solution as it has solved the problem.
– Zuul
@Zuul is right, I edited the answer to make sense, but it would be nice to have Bruno’s
– Machado