skip to Main Content

htaccess rewrite url match subdomains – SEO

I'm trying to modify my website URL for better SEO. Here's what i have so far: RewriteRule ^page-([0-9]+)/?$ /index.php?p=$1 [L,QSA,NC] i want http://www.domain.com/page-10 instead of http://www.domain.com/index.php?p=10 but how do i also match http://www.domain.com/category/index.php?p=2 and rewrite it to http://www.domain.com/category/page-2

VIEW QUESTION

.htaccess for moved forum and seo url

I've a problem with my .htaccess file. I recently moved the forum (IPB) that was in the root path in a subdirectory, so I wrote this .htaccess file Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteRule ^view/([0-9]+)/?$ index.php?view=$1 [NC,L] RewriteCond %{HTTP_HOST}…

VIEW QUESTION
Back To Top
Search