DWS Rules.txt
=============
SEO RULES
---------
I had a problem where I had one DNN page with a query string that had data for 100+ Businesses.
Google was very happy indexing 100+ pages with the same title and description, and this did little
to get these businesses data into Google. JavaScript could change the title for the user, but not
for Google. PageBlaster to the rescue. You could also do this for Keywords.
Replace Title
Replace:
.*?(.*?)(.*?)
With: $2$1
Notes: This rule searches for a The new Title you want for the page
and replease the original title
Replace Description
Replace: (.*?)(.*?)
With: $1
Notes: This does similat to the description.
XHTML RULES
-----------
I have an xhtml (all css) skin and container. I wanted as many pages to be xhtml compliant as reasonable possible. Page by Page I placed PageBlaster on the page and added “Page Rule”s as required. When possible I used John's xhtml rules. While they all worked for John on his home page, some failed badly when I turned them loose wholesale as portal rules. "lower attr" is one that I never got to work in my environment. Also there were things that needed to be deleted, especially in DNN 4.8.0 where the search box as an "autocomplete=off" that is W3C non-compliant.
In addition to John's "lower tag", "close tags", "hr-br", "nowrap",
"remove type", "style type", "style script", "img", "img alt"
I have added:
Delete Crap
Replace: (\btabindex="\-?\d+"|[Aa]utocomplete="off")
With:
Replace Class Etc.
Replace: (\bClass=|\bSummary=|OnMouseOver=|OnMouseOut)
With: [RE:toLower()]
Class=
Replace: ]*?)(\svalign=".*?")(.*?>)
With: $1 $3
Invalid table height
Replace:
With:
Move Link to head (used for modules that incorrectly link css in)
Replace: (.*?)()
With:
$2
$1
Note: The with has a leading neline and each elementt is on its own line.
DWS lower attr (I use this rather than John's)
Replace: \s+[\w-]+="
With: [RE:toLower()]
I messed around with some rules to convert an xhtml page back to a HTML 4.0 page so that when a page was too bad to be fixed I could replace the DOCTYPE and remove the trailing slash to make the pages coloser to 4.0 compliant. I didn't complete that effort.