Help - Search - Members - Calendar
Full Version: Best Way To Change Basename From Underscores To Hyphens?
Movable Type Community Forum > Installing and Upgrading > Upgrading
sherwin
Like the title said; just recently updated from 3.2 to 4.12.

I tried CleanSweep plugin but can't get passed a 500. Are there any other workflow to producing an .htaccess with Redirect/301 rules? I guess I just need a template. Any pointers/links/etc. are greatly appreciated.

TIA
Su-
What exactly are you referring to?
If you're talking about what you see in the basename field on the entry edit screen, just leave it alone. That's only for storage.
If you want the basenames to output with dashes instead of underscores, you do that in your archive mappings. Switch to the one that uses dashes as separator.
sherwin
QUOTE (Su- @ Jul 9 2008, 04:41 PM) *
What exactly are you referring to?
If you're talking about what you see in the basename field on the entry edit screen, just leave it alone. That's only for storage.
If you want the basenames to output with dashes instead of underscores, you do that in your archive mappings. Switch to the one that uses dashes as separator.


Hmmm don't know how I can clarify the above more but here's a try... Basically, have a template saved to a file as .htaccess in my domain's root w/ something like the following:

CODE
Redirect 301 /archives/2008/07/basename_of_some_entry/ /path-to-new-folder/2008/07/04/basename-of-some-entry/
Redirect 301 /archives/2008/04/basename_of_another_entry/ /path-to-new-folder/2008/04/04/basename-of-another-entry/
...
etc.


I have the first part since its what I have it mapped to atm, but I'm trying to find the missing link which is to how I'll be doing the following:

* Converting the basename from underscores to hyphens
* and at the same time re-produce the .htaccess with the old path/basename_of_entry in tact like the above example

I HTH clarify it somewhat.

=)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.