How to make a clean .htaccess? -


I have a problem with htaccess and it's not quite good on that. I want to know how to clear the URL.

Here is the original

and I need this type of URL

and how do I get p value index1 / index2 if I get this $ _ from the database is?

Pattern is not included in $ 1 , but the remaining < Code> (. *) Has been captured in code> in $ 2 .

  RegAttengen ON # Does not rewrite existing existing files & amp; Directory (such as CSS, JS, IMG) revaccount% {REQUEST_FILENAME}! -f Revert count% {REQUEST_FILENAME}! -D # Add the .php to the first group (such as the page PHP) and the rest of the PRRRTRL ^ ([^ ^ /] +) / (. *) $ $ 1.php? P = $ 2   

Within PHP, get through p :

  $ _ GET ['p' ]    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -