Jul 05, 2009, 08:45 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
Pages: [1] 2 3 ... 5   Go Down
  Print  
Author Topic: Support/Comments for SEO Strict URLs  (Read 20211 times)
0 Members and 1 Guest are viewing this topic.
ApoXX
Coding Team
*
Posts: 131


WWW
« on: Feb 24, 2007, 05:12 PM »

This is an auto-generated support/comment thread for SEO Strict URLs.

Use this forum to post any comments about this addition or any questions you have regarding its use.

Brief Description:
Enforces the use of unique document URLs to prevent duplicate content.
Logged
ApoXX
Coding Team
*
Posts: 131


WWW
« Reply #1 on: Feb 24, 2007, 05:33 PM »

By the way, to enforce the www on URLs, users can use the following mod_rewrite rule with the Apache webserver:

Code:
# Include the following in your .htaccess file
# Replace "example.com" &  "example\.com" with your domain info
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

To enforce URLs without the www, simply remove all references of www. in the htaccess rule:

Code:
# Include the following in your .htaccess file
# Replace "example.com" &  "example\.com" with your domain info
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^example\.com [NC]
RewriteRule (.*) http://example.com/$1 [R=301,L]

Original SEO Strict URL thread: http://modxcms.com/forums/index.php/topic,7346.0.html

More information on htaccess rewriting and friendly URL's can be found at: http://wiki.modxcms.com/index.php/Friendly_URLs_Guide
« Last Edit: Feb 24, 2007, 05:40 PM by ApoXX » Logged
identity
Full Member
***
Posts: 226



WWW
« Reply #2 on: Mar 10, 2007, 12:27 PM »

This is beyond sweet!! Thanks.

Just installed and getting familiar with, though doesn't seem like much to do, which is even better.

Am running into an issue with the TvTagCloud which passes the tag parameters as:
Code:
www.mydomain.com/info.htm&tags=sometag

Any recommendations on a solution?
Logged

| Identity Developments delivers SEO focused web design and web presence services
- it's not about websites, it's about your identity.
| Get the Website Planning Kit | Create a Site by Nite |
ApoXX
Coding Team
*
Posts: 131


WWW
« Reply #3 on: Mar 10, 2007, 12:35 PM »

Hmm, I don't understand why TV tag cloud formats the URL as they do, I'm not even sure that it's valid. If possible, try formatting the URL as:

Code:
www.mydomain.com/info.htm?tags=sometag
« Last Edit: Mar 10, 2007, 10:34 PM by ApoXX » Logged
identity
Full Member
***
Posts: 226



WWW
« Reply #4 on: Mar 10, 2007, 12:45 PM »

Okay, I'm assuming I need to dig into their code... not a strong suite, but I think I can manage. I'll let you know.

Another question. I have the xml sitemap snippet and I read in the development thread that this avoids the sitemap.xml.htm issue, which I'm doubly thrilled about... but not sure how to get the TV override to do that since it is setup on a (blank) template. Do I need to create a specific template now but leave it blank and assign the override TV to it???



EDIT: Making the change in the TvTagCloud worked.
« Last Edit: Mar 10, 2007, 12:55 PM by identity » Logged

| Identity Developments delivers SEO focused web design and web presence services
- it's not about websites, it's about your identity.
| Get the Website Planning Kit | Create a Site by Nite |
ApoXX
Coding Team
*
Posts: 131


WWW
« Reply #5 on: Mar 10, 2007, 01:01 PM »

Yup, you will have to create a "blank" template and assign the custom TV to it.

The template code will be blank except for the main content:

[*content*]
Logged
identity
Full Member
***
Posts: 226



WWW
« Reply #6 on: Mar 10, 2007, 01:10 PM »

I must be doing something wrong, I'm sure.

I setup a new template called Empty.
Placed [*content*] in it.
My sitemap page is set to use that template and is empty except for the sitemap snippet call.
I then set the override TV to Base Name.

Never mind, just realized that I also need to set the plugin configuration to allow manual overrides. Now it works.

 Grin Grin Grin

This rocks!

cheers
Logged

| Identity Developments delivers SEO focused web design and web presence services
- it's not about websites, it's about your identity.
| Get the Website Planning Kit | Create a Site by Nite |
ApoXX
Coding Team
*
Posts: 131


WWW
« Reply #7 on: Mar 10, 2007, 01:24 PM »

Awesome, I'm glad it's working  Cheesy
Logged
sirlancelot
Coding Team
*
Posts: 575


PHP, XML, XSL Supporter


WWW
« Reply #8 on: Mar 14, 2007, 04:31 PM »

Yup, you will have to create a "blank" template and assign the custom TV to it.

The template code will be blank except for the main content:

[*content*]
Alternatively, if you know MySQL queries, you can sort of "Hack" the automatic blank template to hold this TV in two steps:
  • Open up [PREFIX]site_tmplvars and remember the id of your seoOverride TV
  • Run this query: INSERT INTO [PREFIX]site_tmplvar_templates (tmplvarid, templateid) VALUES ( [id], 0 );
Of course, replace [id] with the id of your TV and [PREFIX] with your MODX db prefix. If you don't know MYSQL or how to do the instructions above, just go with ApoXX's method, it's easier. This method just produces less clutter in the templates. There's no other advantages.

Have fun! Only tested on MODx 0.9.5 - 0.9.6
Logged

ApoXX
Coding Team
*
Posts: 131


WWW
« Reply #9 on: Mar 14, 2007, 07:22 PM »

Thanks for the tip Sirlancelot.
Logged
Geo88
Member
**
Posts: 68


ModX greenhorn


« Reply #10 on: Mar 15, 2007, 04:10 PM »

Hi.I have discovered a inconsistency bug in this version.
I have a container with children , and it's resolved url is something like this: http://yoursite.com/doc_id/ , but, on the page, in the menu generated by wayfinder it appears like this: http://yoursite.com/doc_id.html . Also , This issue doesn't appear for first level items , but only for the children from what I can see.
By the way,is there any intention of implementing the feature request I wanted (the one with the folders with no children to appear as containers-see the old thread) as an official configuration option ?
Logged
almays
Jr. Member
*
Posts: 48



WWW
« Reply #11 on: Mar 18, 2007, 08:41 AM »

Hello.

I am busy with migrating the site from old phpnuke with urls like /module.php?name=Pages to MODx.

In order to keep search engines happy and informed about new addresses of the pages I need to have a way to send 301 redirect, when someone comes to that old page like /module.php?name=Pages.

I have made some plugin prototype, which is described at
http://modxcms.com/forums/index.php/topic,13134.0.html

I have also started some discussion in the thread
http://modxcms.com/forums/index.php/topic,8316.0.html
but nothing interesting is there.

The plugin doesn't work yet. Something is wrong there.

I'd like to ask you for the help in developing this new plugin, or just include the described functionality into yours. As soon as it is also about SEO and 301 redirect.
Logged
ApoXX
Coding Team
*
Posts: 131


WWW
« Reply #12 on: Mar 19, 2007, 10:44 PM »

@Geo88:

I believe I have fixed the issues you reported with sub-folder rewriting. I have also integrated support for correct rewriting of empty containers when using &makeFolder, the new parameter is called &emptyFolders.

Edit: The updated (and confirmed working) code is now available in the repository: http://www.modxcms.com/SEO-Strict-URLs-1335.html

@almays:

Did you come up with a solution to your plugin yet? .. I saw you had posted something new in the thread. I would be more than happy to integrate the functionality into SEO strict and think it would fit in with the overall purpose of the plugin.
« Last Edit: Mar 23, 2007, 03:45 PM by ApoXX » Logged
pixelchutes
Coding Team
*
Posts: 839



WWW
« Reply #13 on: Mar 23, 2007, 07:29 PM »

Nice! v1.0.1 corrected the weird 404 behavior I was experiencing when alias_path was OFF. Now it sends proper 404 HTTP response again Smiley
Logged

Mike Reid - www.pixelchutes.com
MODx Team Member / Contributor
[Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
________________________________
Where every pixel matters.
Hypercubed
New Member
*
Posts: 4



« Reply #14 on: Mar 27, 2007, 11:30 PM »

Is this plugin incompatible with the FileDownload  Plugin?  The two don't play nicely on my site.
Logged

Pages: [1] 2 3 ... 5   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!