Home .htaccess CNC links using .htaccess

CNC links using .htaccess

Author

Date

Category

Hello. There is such a URL address

http: //domure/index.php? Table = DataPages & amp; pages = news

I want to use .htaccess get this

http: // domain / index / datapages / news

On the Internet, I read many articles about it, but nothing happens. From the last article like from this

rewriteengine on
Rewriterule ^ index / ([^ /] +) / ([^ /] +) index.php? Table = $ 1 & amp; pages = $ 2

should succeed, but nothing changes, help, if you can.


Answer 1, Authority 100%

rewriteengine on
Rewriterule ^ index / ([a-za-z0-9 _] +) / ([a-za-z0-9 _] +) $ /index.php?table=$1&pages=$2 [L, QSA]

Answer 2

And if so try (general view):

rewriteengine on
RewriteCond% {Request_fileName}! ^ Favicon \ .ico
RewriteCond% {Request_fileName}! -D
RewriteCond% {Request_FileName}! -F
Rewriterule ^ (. *) $ Index.php [L, QSA]

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions