Answer the question
In order to leave comments, you need to log in
CNC Links for php?
Hello, I'm trying to make CNC links for a website. I climbed the entire Internet, and tried many options, none of them helped.
From this link mydomain.com/thread.php?t=21 , you need to make mydomain.com/thread/21 or mydomain.com/thread/t/21 .
Tried to do through htacces
Thanks in advance for your help!
Answer the question
In order to leave comments, you need to log in
RewriteCond %{QUERY_STRING} (?:^|&)t\=21(?:$|&)
RewriteRule ^mydomain\.com/thread\.php$ /mydomain.com/thread/21? [L,R=301]
index.php?route=%1
RewriteEngine On
Options +FollowSymLinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/index.php$
RewriteRule ^(.*)$ /index.php [L]
?:
ignore this group is not a mandatory rule
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question