MyBB Community Forums

Full Version: Enable Google SEO 1.1.3 with IIS Server - Easily
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi guys,

Most of you have installed MyBB forum on IIS Server will not be used Google SEO. But I've found a solution to help you overcome this obstacle.

I using (IIS7 - Windows 7)

Step 1. Install Google SEO .

Step 2: Install URL Rewrite for IIS

Step 3: Convert .htaccess to web.config

We will use Import Rules of URLRewrite[Image: s1.JPG]

Browser to .htaccess file (provided by G SEO)
[Image: s2.JPG]
Then, click Import --> Successful conversion.

Finally, you click Apply, the system automatically creates files in the installation folder webconfig MyBB

Done .

Demo: http://levanthinh.edu.vn/
Can you explain in detail for how to install SEO etc?
How to install the plugin? Read the documentation.
(2011-07-09, 07:15 PM)faviouz Wrote: [ -> ]How to install the plugin? Read the documentation.

I mean with IIS 7
Well, it can't get any more step by step than this. Where exactly are you having trouble setting it up?
I have installed SEO activate it....Now which ones i have to enable from the following? and with what settings?

Google SEO 404 (3 Settings)
404 error page settings for the Google Search Engine Optimization plugin.
Google SEO Meta (4 Settings)
Meta tag settings for the Google Search Engine Optimization plugin.
Google SEO Redirect (4 Settings)
Redirection settings for the Google Search Engine Optimization plugin.
Google SEO Sitemap (10 Settings)
Sitemap settings for the Google Search Engine Optimization plugin.
Google SEO URL (15 Settings)
URL settings for the Google Search Engine Optimization plugin.
I tried to import .htaccess.txt into IIS 7 and get the following;

<rewrite>
<!--This directive was not converted because it is not supported by IIS: RewriteBase specification..-->
<!--This directive was not converted because it is not supported by IIS: RewriteBase /MyBB/.-->
<rules>
<!--# EXAMPLE .htaccess FOR MYBB WITH GOOGLE SEO URL-->
<!--# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!--# This file is identical to MyBB's htaccess.txt example file,-->
<!--# with rewrite rules for a standard Google SEO install added.-->
<!--#-->
<!--# Before using this file please make sure to:-->
<!--#-->
<!--# - replace /MyBB/ with your forum folder, e.g. / or /forum/-->
<!--# - replace yoursite/MyBB with your forum URL-->
<!--# - name the file '.htaccess' (starting with the dot, no .txt)-->
<!--#-->
<!--# Alternatively you can add the required rewrite rules to your-->
<!--# existing .htaccess, the specific rules required will be displayed-->
<!--# on the plugin status page once Google SEO URL is enabled.-->
<!--# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!--#-->
<!--# If mod_security is enabled, attempt to disable it.-->
<!--# - Note, this will work on the majority of hosts but on-->
<!--# MediaTemple, it is known to cause random Internal Server-->
<!--# errors. For MediaTemple, please remove the block below-->
<!--#-->
<!--#-->
<!--# MyBB "search engine friendly" URL rewrites-->
<!--# - Note, for these to work with MyBB please make sure you have-->
<!--# the setting enabled in the Admin CP and you have this file-->
<!--# named .htaccess-->
<!--#-->
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^([^&amp;]*)&amp;(.*)$" ignoreCase="false" />
<action type="Redirect" redirectType="Permanent" url="http://www.cpuforever.com/FORUM/{R:1}?{R:2}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^sitemap-([^./]+)\.xml$" />
<action type="Rewrite" url="misc.php?google_seo_sitemap={R:1}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 3" stopProcessing="true">
<match url="^Forum-([^./]+)$" />
<action type="Rewrite" url="forumdisplay.php?google_seo_forum={R:1}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 4" stopProcessing="true">
<match url="^Thread-([^./]+)$" />
<action type="Rewrite" url="showthread.php?google_seo_thread={R:1}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 5" stopProcessing="true">
<match url="^Announcement-([^./]+)$" />
<action type="Rewrite" url="announcements.php?google_seo_announcement={R:1}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 6" stopProcessing="true">
<match url="^User-([^./]+)$" />
<action type="Rewrite" url="member.php?action=profile&amp;google_seo_user={R:1}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 7" stopProcessing="true">
<match url="^Calendar-([^./]+)$" />
<action type="Rewrite" url="calendar.php?google_seo_calendar={R:1}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 8" stopProcessing="true">
<match url="^Event-([^./]+)$" />
<action type="Rewrite" url="calendar.php?action=event&amp;google_seo_event={R:1}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 9" stopProcessing="true">
<match url="^forum-([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="forumdisplay.php?fid={R:1}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 10" stopProcessing="true">
<match url="^forum-([0-9]+)-page-([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="forumdisplay.php?fid={R:1}&amp;page={R:2}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 11" stopProcessing="true">
<match url="^thread-([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="showthread.php?tid={R:1}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 12" stopProcessing="true">
<match url="^thread-([0-9]+)-page-([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="showthread.php?tid={R:1}&amp;page={R:2}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 13" stopProcessing="true">
<match url="^thread-([0-9]+)-lastpost\.html$" ignoreCase="false" />
<action type="Rewrite" url="showthread.php?tid={R:1}&amp;action=lastpost" appendQueryString="true" />
</rule>
<rule name="Imported Rule 14" stopProcessing="true">
<match url="^thread-([0-9]+)-nextnewest\.html$" ignoreCase="false" />
<action type="Rewrite" url="showthread.php?tid={R:1}&amp;action=nextnewest" appendQueryString="true" />
</rule>
<rule name="Imported Rule 15" stopProcessing="true">
<match url="^thread-([0-9]+)-nextoldest\.html$" ignoreCase="false" />
<action type="Rewrite" url="showthread.php?tid={R:1}&amp;action=nextoldest" appendQueryString="true" />
</rule>
<rule name="Imported Rule 16" stopProcessing="true">
<match url="^thread-([0-9]+)-newpost\.html$" ignoreCase="false" />
<action type="Rewrite" url="showthread.php?tid={R:1}&amp;action=newpost" appendQueryString="true" />
</rule>
<rule name="Imported Rule 17" stopProcessing="true">
<match url="^thread-([0-9]+)-post-([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="showthread.php?tid={R:1}&amp;pid={R:2}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 18" stopProcessing="true">
<match url="^post-([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="showthread.php?pid={R:1}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 19" stopProcessing="true">
<match url="^announcement-([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="announcements.php?aid={R:1}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 20" stopProcessing="true">
<match url="^user-([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="member.php?action=profile&amp;uid={R:1}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 21" stopProcessing="true">
<match url="^calendar-([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="calendar.php?calendar={R:1}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 22" stopProcessing="true">
<match url="^calendar-([0-9]+)-year-([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="calendar.php?action=yearview&amp;calendar={R:1}&amp;year={R:2}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 23" stopProcessing="true">
<match url="^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="calendar.php?calendar={R:1}&amp;year={R:2}&amp;month={R:3}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 24" stopProcessing="true">
<match url="^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="calendar.php?action=dayview&amp;calendar={R:1}&amp;year={R:2}&amp;month={R:3}&amp;day={R:4}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 25" stopProcessing="true">
<match url="^calendar-([0-9]+)-week-(n?[0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="calendar.php?action=weekview&amp;calendar={R:1}&amp;week={R:2}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 26" stopProcessing="true">
<match url="^event-([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="calendar.php?action=event&amp;eid={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
Then it says in the bottom 26 out of 28 rules has been converted successfully
Ok i was able to Import the .htaccess into IIS. Now what? how can i check it is working?
Now continue with the installation of the Google SEO plugin and see if it works.

Have you uploaded the modified ./inc/functions.php file?
Yes i did uploaded the function file

I am also getting the following at plugin...

[Image: Capture.jpg]
Put that in your .htaccess file.
(2011-07-09, 09:59 PM)faviouz Wrote: [ -> ]Put that in your .htaccess file.

Ok now i have this. How can i check it is working or not?

[Image: Capture191.jpg]
Pages: 1 2