[L] means "last rule to process", i.e. do not apply other rewrite rules if this one matches.
This is a discussion on [How to] Setup www.yourdomain.com or yourdomain.com (www vs. non-www) - With .htaccess 301 redirects within the General Discussion forums, part of the vBSEO SEO Plugin category; [L] means "last rule to process", i.e. do not apply other rewrite rules if this one matches....
[L] means "last rule to process", i.e. do not apply other rewrite rules if this one matches.
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
I completed the redirect of example.com to www.example.com/
I did not see how to automatically put a www.example.com/index.php to www.example.com/ can you please tell me how to do this?
@breakpoint: If you have your forum in root too, you can define the homepage aliases as :in your vbseocp.Code:index.php index.php?
Otherwise, you can setup this .htaccess redirect rule in root:Code:RewriteCond %{THE_REQUEST} /index\.php\ HTTP/ RewriteRule ^index\.php$ / [R=301,L]
I have tried this on my other site which doesn`t use vbseo.
But it hasn`t worked with "index.php?".Code:RewriteCond %{THE_REQUEST} /index\.php\ HTTP/ RewriteRule ^index\.php$ / [R=301,L]
Ok, this only affects the homepage, how can you make it so that http://www.example.com/forum1/thread1 becomes http://example.com/forums1/thread1 ?
When you set it as explained in first post , it is set to redirect www.domain.com to domain.com globally for all internal sub pages.
Mert Gökçeimam / Crawlability Inc.
vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!
Twitter:@Depkac
Personal Blog : Mert Gökçeimam
good post but i am getting error Part of the process of setting a preferred domain is to verify that you own http://mydomain.com/. Please verify http://mydomain.com/.
i want to verify. google says you need to add a template or meta tag. i added template. but it says google didn't find the template that i added
You should not be adding a template, you should be adding a .html file.
The Forum Hosting - Forum Hosting from the Forum Experts
What link is the google page on your website? Link to it here.
The Forum Hosting - Forum Hosting from the Forum Experts
My homepage is www.dumontnjforum.com (WordPress)
My forums is www.dumontnjforum.com/forums
Here's what I've come up with (in red):
# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On
# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.dumontnjforum\.com
RewriteRule (.*) http://www.dumontnjforum.com/forums/$1 [L,R=301]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
Did I do it right and place it in the right spot/position?
And, what about this line RewriteCond %{REQUEST_URI} forum/?
This is for a trailing slash. Do I/Should I use it?
Thanks!!![]()
You are using it correct
Mert Gökçeimam / Crawlability Inc.
vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!
Twitter:@Depkac
Personal Blog : Mert Gökçeimam
Just set mine up for the good ole' www. Tested it and it works like a charm!!
sorry for my dumb question. but i have several urls for my website
how do i for example 301 redirect
www.mysite .org to www.mysite. com ?
thank you so much in advance!