Hi
How to write code mod-rewrite for 3 variables.
Ma actualy code:

AddType text/x-component .htc
AddType application/x-httpd-php .html
Options FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]+)/([^/]+)$ index.php?s=$1&pods2=$2&pods3=$3 [L]

variables $1 and $2 correctly work, but $3 does not work, what can I do?

There are only two variables in your RegExp:

^([^/]+)/([^/]+)$

Use this to get three segments:

^([^/]+)/([^/]+)/([^/]+)$
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.