G
G
georgich2017-08-02 20:51:07
htaccess
georgich, 2017-08-02 20:51:07

CNC and mod_rewrite?

Greetings.
I googled and decided to go here. There is a link like this: domain/profile.php?param1=value1¶m2=value2
You need to make a CNC like this: domain/value1/value2
I did this using a generator:

RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)$ /profile.php?param1=$1&param2=$2 [L]

I click on the link of the first type, the link is not converted to the second type. I suspect that in htaccess it is also necessary to make a redirect rule to a link of the second type. If true, how to implement it?
And the second. When I manually type in the link domain/value1/value2 into the browser line , the page loads, but without styles. What could be the problem here?
Thanks for answers.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question