0
Hello I’m starting to try to work with friendly Urls now, so I’m not sure I’m doing the right thing. Here’s the thing: I have a site made totally without the use of htaccess, so it has huge links, I’ve been researching and to modify it totally will take a lot of work, so I’m trying to use the method of rewriting the Urls by htaccess.
My htaccess is as follows:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)-(.*)-(.*)$ index.php?livro=$1&capitulo=$2&versao=$3
RewriteRule ^(.*)-(.*)-(.*)-(.*)$ versiculos.php?livro=$1&capitulo=$2&versiculo=$3&versao=$4
Both the index, and the page verses, are at the root of the directory. The problem is that if I declare only the second condition, it works right as expected, but as I need to put also the condition of the index, the second condition does not work, I think is giving some kind of conflict.
Like I said, I don’t know if I’m doing anything wrong. There would be some way to specify which page each condition will serve ?