Quote from: OpenGeek at Mar 31, 2007, 09:06 PM
Actually, the best way is to build URL’s without an initial symbol using $modx->makeUrl()...
$modx->makeUrl(12, '', 'param1=2¶m2=1');
Nice! Thx, Jason.
-
- 75 Posts
Hi
My site structure is like, mysite.com/some-page/ so if i want to use a sitemap it will parse it as mysite.com/sitemap.xml/ .I dont think SE bots will love it so is it possible to use a 301redirect for my site map only ? so it will parsed as mysite.com/sitemap.xml . Is this may work so SE bots read it as normal ? if yes can someone can share me the needed 301 code please.
Thanks
-
- 788 Posts
Look at the "Override TV Setup" in the instructions at:
http://www.modxcms.com/SEO-Strict-URLs-1335.html
Then set sitemap.xml to "Base Name" in the seoOverride TV. That is what I did and all works fine.
Jesse R.
Consider trying something new and extraordinary.
Illinois Wine
Have you considered donating to MODx lately?
Donate now. Every contribution helps.
-
- 788 Posts
Don’t change "Base Name" to sitemap.xml when setting up the seoOverride TV. Set it up exactly as he described it:
Input Type: DropDown List Menu
Input Option Values: Disabled==-1||Base Name==0||Append Extension==1||Folder==2
Default Value: -1
I am using 0.9.6 RC2 on the particular setup I am talking about, and I am using sitemap:
http://www.modxcms.com/sitemap-711.html
Jesse R.
Consider trying something new and extraordinary.
Illinois Wine
Have you considered donating to MODx lately?
Donate now. Every contribution helps.
-
- 788 Posts
Here is the step by step instructions for getting the Sitemap Snippet working:
http://wiki.modxcms.com/index.php/SiteMap:_Google_sitemaps_in_MODx
In essence though, place the snippet call inside the content of the document you created, that has the alias, "sitemap.xml" Make sure this page has its content type set to "text/xml" in the "Page Settings."
The snippet call should look something like:
[!GoogleSiteMap_XML? &format=`sp` &excludeTemplates=`blank,OTHER_TEMPLATES_TO_EXCLUDE`!]
Then set the seoOverride for this page to "Base Name."
Jesse R.
Consider trying something new and extraordinary.
Illinois Wine
Have you considered donating to MODx lately?
Donate now. Every contribution helps.