Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
headache free restructuring?
i want to restructure my site, by moving the blog off the main page and tucking it away into a new section called “blog”. when i started the site all my blog posts were just mysite.com/article/48/my-blogpost – but as i’ve tested locally it’s going to change to mysite.com/blog/48/my-blogpost
so my two considerations are users that have any of my posts bookmarked, and the other consideration what will happen to my feedburner feed.
Offline
Re: headache free restructuring?
I think Zem’s Redirect Pro v1 plug-in would take care of this but your problem is – getting hold of it! I have emailed him to find out the current position on it.
Not sure if this would also redirect Feedburner.
Last edited by thebombsite (2008-11-12 20:30:47)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2008-11-12 22:11:40
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: headache free restructuring?
mrtunes wrote:
when i started the site all my blog posts were just mysite.com/article/48/my-blogpost – but as i’ve tested locally it’s going to change to mysite.com/blog/48/my-blogpost
If that is all that is going to change, a simple redirect in .htaccess will do:
Redirect permanent /article http://mysite.com/blog
I’m guessing that it would also redirect Feedburner feeds, but I’ve never used that, so someone else should confirm this.
Offline
Re: headache free restructuring?
hmmm is this a bit more tricky to test out locally in xampp? i tried redirect as well as redirect 301(did a google), and it still doesn’t redirect anything.
Offline
#5 2008-11-13 00:29:55
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: headache free restructuring?
I don’t know if it works in xampp, but I’m sure it works on a live site. I’ve been using lots of these lines, because there was a time when I couldn’t make up my mind about section names, and kept changing them on a regular basis… ;) (permanent is the same as 301)
Offline
Re: headache free restructuring?
ok tried it on a live site, and of course it works! i see how it goes, nothing in your txp site changes just the server handles the link differently.
i guess it doesn’t work locally cause you’d probably have to tinker with the httpdconf file – cause that’s how i got my clean urls to work locally too
thanks :)
Offline
Re: headache free restructuring?
ok, so i did a great job at breaking my site with this lol
i just updated the site and i put a redirect in my .htaccess file. it wasn’t working so i took it out. but i’m stuck with this dead page now.
is there any way to flush the .htaccess or something?
i’m blaming htaccess because every other page is working and my original experiments were involving a redirect that sends every /article to /blog
the interesting part is individual articles from that blog section are working
Offline
Re: headache free restructuring?
Dunno if it helps, but adding “index.php” (as in www.mrtunes.ca/blog/index.php) works…
Added: Logically, changing the .htaccess file to read:
Redirect permanent /article http://mysite.com/blog/index.php
might do it.
Last edited by keith (2008-12-17 21:15:27)
Keith
Blyth, Northumberland, England
Capture The Moment
Offline
Re: headache free restructuring?
keith wrote:
Dunno if it helps, but adding “index.php” (as in www.mrtunes.ca/blog/index.php) works…
Added: Logically, changing the .htaccess file to read:
bc. Redirect permanent /article http://mysite.com/blog/index.php
might do it.
hi, thanks for posting so fast. as you can imagine i’m sort of panicking today hehe. this is bizarre behaviour how the index.php works. i would do the redirect, but that doesn’t solve the problem with all the categories on the blog.
and now of course my host is flaking out on me with a horrible server speed.
Offline
#10 2008-12-17 23:59:41
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: headache free restructuring?
I can’t check because your site returns an internal server error, but you shouldn’t have to add index.php at all… Can you post the entire content of your .htaccess?
Offline
Re: headache free restructuring?
Fair enough guys – it was but a thought, and I’m no .htaccess expert.
Hope you get this sorted, Elliott.
Keith
Blyth, Northumberland, England
Capture The Moment
Offline
Re: headache free restructuring?
Els wrote:
I can’t check because your site returns an internal server error, but you shouldn’t have to add index.php at all… Can you post the entire content of your .htaccess?
yeah it’s been a rough day :(
i think my host is down(earlier it was just timing out). i’m switching hosts now but i have to pray that they will release my domain name without a hassle this week.
this might be the canned .htaccess out of 4.0.7 installer:
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
Offline
Re: headache free restructuring?
keith wrote:
Fair enough guys – it was but a thought, and I’m no .htaccess expert.
Hope you get this sorted, Elliott.
thanks keith, it was at least reassuring to see that page show up with your suggestion :)
Offline
#14 2008-12-18 00:59:31
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: headache free restructuring?
And where in this .htaccess file did you add this line?
Redirect permanent /article http://mysite.com/blog
And what do you mean exactly with ‘it wasn’t working’? It did nothing or it did something you did not expect?
Offline
Re: headache free restructuring?
Els wrote:
And where in this .htaccess file did you add this line?
Redirect permanent /article http://mysite.com/blog
#Options -Indexes
Redirect permanent /article http://mysite.com/blog
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /relative/web/path/
And what do you mean exactly with ‘it wasn’t working’? It did nothing or it did something you did not expect?
it had some sort of error message similar to a 500, you know the white screen. i wish i copied it out but a google search of the error string looked fairly specific to my situation, cause nothing came up when i googled.
Offline