Hy,
I have this htaccess file:
php_flag display_errors on
Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^index.html$ index.php [L]
RewriteRule ^termeni.html$ index.php?Page=Terms [L]
RewriteRule ^contact.html$ index.php?Page=Contact [L]
RewriteRule ^despre-noi.html$ index.php?Page=AboutUs [L]
#Pagina
RewriteRule ^pagina-([^/\.]+)?.html$ index.php?Page=$1 [L]
#Category
RewriteRule ^pagina-([^/\.]+)-c([^/\.]+)?.html$ index.php?Page=$1&CategoryPID=$2 [L]
#SubCategory
RewriteRule ^pagina-([^/\.]+)-c([^/\.]+)-s([^/\.]+)?.html$ index.php?Page=$1&CategoryPID=$2&CategoryID=$3 [L]
#Object
RewriteRule ^pagina-([^/\.]+)-c([^/\.]+)-s([^/\.]+)-o([^/\.]+)?.html$ index.php?Page=$1&CategoryPID=$2&CategoryID=$3&ObjID=$4 [L]
#News
RewriteRule ^pagina-([^/\.]+)-n([^/\.]+)?.html$ index.php?Page=$1&NewsID=$2 [L]
RewriteCond %{HTTP_HOST} ^www\.(web-anunturi\.ro)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
</IfModule>
I would like the url to look like this
name_site.ro/pagina-NAME OF THE PAGE-PRIMARY CATeg-SECONDARY CATEG-OBJECT ID.html
Can u tell me what is wrong with that htaccess?