Is it possible to do an odd and even replacement in
Why don't you want to make it in PHP script itself? I think I saw this for the first time in Zend framework, but now using similar approach in my projects.
RewriteEngine on RewriteRule .* index.php
$path = $_SERVER['REQUEST_URI']; $paths = explode('/', path); // Add some logic for showing the page you need. Maybe remove domain before processing
For example you can use even arguments as array keys and add argument as value for these keys.