Quote:
Originally Posted by eNforce
Does vB installation come default with a .htaccess file?
The contents of my htaccess file is completely blank, could someone maybe post their entire .htaccess please? This might solve my SEO problem, I don't know but worth a try.
|
Here's the portion of my htaccess file that adds rewrite for zseo.
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^keepmusicalive\.com
RewriteRule ^(.*)$ http://www.keepmusicalive.com/$1 [R=permanent,L]
RewriteRule ^([a-z0-9_\-]*-(f|all)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ forumdisplay.php/$1 [QSA,L]
RewriteRule ^([a-z0-9_\-]*-(t|p)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ showthread.php/$1 [QSA,L]
RewriteCond %{REQUEST_URI} !(index\.php|\.css) [NC]
RewriteRule ^(archive|sitemap)/(.*)$ $1/index.php/$2 [QSA,L]
But it's important to note that I have enabled a 301 redirect that essentially directs all my homepage traffic (
http://keepmusicalive.com,
http://keepmusicalive.com/index.php, etc...) to be redirected to
http://www.keepmusicalive.com which is the forumhome page at this domain. I've enabled the "redirect index.php" option in the ZSEO CP, and I've also enabled my archive to act as a sitemap and to be renamed as Sitemap.
So if your forumhome page is yourdomain.com/forums, or if you have different settings enabled, your htaccess will look differently than mine.