Answer the question
In order to leave comments, you need to log in
How to put everything after the slash into a parameter?
Let's say there is a site.com, how can I use .htaccess to make the site.com/ef3Te link, for example, turn into site.com/?param=ef3Te ?
The code I am currently trying to use looks like this
RewriteEngine On
RewriteBase /
RewriteRule ^-(.*) /?param=$1 [L]
Answer the question
In order to leave comments, you need to log in
So?
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/?$ index.php?p=$1 [L,QSA]
RewriteRule ^([^/]*)/$ /?arg1=$1 [L]
RewriteRule ^([^/]*)/([^/]*)/$ /?arg1=$1&arg2=$2 [L]
As far as I understand, you are going to write your CNC, oh my God?
I think you should read about them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question