Jem
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Problem with mod_rewrite redirects after migration to WP 1.5Hrm. Alright… I managed to get the feed forwarding to the new FeedBurner address by inserting the following:
Redirect temp /~jeremy/wp/wp-rss2.php http://feeds.feedburner.com/JeremyHiggs
I wonder why this works, but the other ones I tried (RewriteRule ^wp/wp-rss2.php$ http://feeds.feedburner.com/JeremyHiggs) didn’t work?
Forum: Fixing WordPress
In reply to: Problem with mod_rewrite redirects after migration to WP 1.5Hmmm… I’ve had a bit of a look into this, and for some reason now, accessing http://www.higgs-family.net/~jeremy/wp/ shows the site correctly.
However, accessing http://www.higgs-family.net/~jeremy/wp/wp-rss2.php (which doesn’t exist) shows that page with no CSS. I had a look at the source, and it contained this snippet of code:
<div align="right">I did a grep for it, and found the only mention of it in the http://www.higgs-family.net/~jeremy/wp.php file. So obviously one of the rules is causing this to be redirected, but I can’t tell what.
FWIW, here’s my .htaccess file:
# Custom stuffRewriteEngine On
RewriteBase /~jeremy/RewriteRule ^wp/?$ /~jeremy/$1 [R=302]
#RewriteRule ^wp/wp-rss2.php$ http://feeds.feedburner.com/JeremyHiggs [QSA,L]
RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ http://feeds.feedburner.com/JeremyHiggs [QSA,L]
RewriteRule ^(feed|rdf|rss|rss2|atom)/?$ http://feeds.feedburner.com/JeremyHiggs [QSA,L]# End custom stuff
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~jeremy/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [S=43]
RewriteRule ^plugins/?$ /~jeremy/index.php?pagename=plugins [QSA,L]
RewriteRule ^about/?$ /~jeremy/index.php?pagename=about [QSA,L]
RewriteRule ^archives/?$ /~jeremy/index.php?pagename=archives [QSA,L]
RewriteRule ^gallery/?$ /~jeremy/index.php?pagename=gallery [QSA,L]
RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?&feed=$1 [QSA,L]
RewriteRule ^(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?&feed=$1 [QSA,L]
RewriteRule ^page/?([0-9]{1,})/?$ /~jeremy/index.php?&paged=$1 [QSA,L]
RewriteRule ^comments/feed/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?&feed=$1&withcomments=1 [QSA,L]
RewriteRule ^comments/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?&feed=$1&withcomments=1 [QSA,L]
RewriteRule ^comments/page/?([0-9]{1,})/?$ /~jeremy/index.php?&paged=$1 [QSA,L]
RewriteRule ^site/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?pagename=$1&feed=$2 [QSA,L]
RewriteRule ^site/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?pagename=$1&feed=$2 [QSA,L]
RewriteRule ^site/([^/]+)/page/?([0-9]{1,})/?$ /~jeremy/index.php?pagename=$1&paged=$2 [QSA,L]
RewriteRule ^site/([^/]+)/?$ /~jeremy/index.php?pagename=$1 [QSA,L]
RewriteRule ^search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?s=$1&feed=$2 [QSA,L]
RewriteRule ^search/(.+)/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?s=$1&feed=$2 [QSA,L]
RewriteRule ^search/(.+)/page/?([0-9]{1,})/?$ /~jeremy/index.php?s=$1&paged=$2 [QSA,L]
RewriteRule ^search/(.+)/?$ /~jeremy/index.php?s=$1 [QSA,L]
RewriteRule ^archives/category/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?category_name=$1&feed=$2 [QSA,L]
RewriteRule ^archives/category/(.+)/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?category_name=$1&feed=$2 [QSA,L]
RewriteRule ^archives/category/(.+)/page/?([0-9]{1,})/?$ /~jeremy/index.php?category_name=$1&paged=$2 [QSA,L]
RewriteRule ^archives/category/(.+)/?$ /~jeremy/index.php?category_name=$1 [QSA,L]
RewriteRule ^archives/author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?author_name=$1&feed=$2 [QSA,L]
RewriteRule ^archives/author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?author_name=$1&feed=$2 [QSA,L]
RewriteRule ^archives/author/([^/]+)/page/?([0-9]{1,})/?$ /~jeremy/index.php?author_name=$1&paged=$2 [QSA,L]
RewriteRule ^archives/author/([^/]+)/?$ /~jeremy/index.php?author_name=$1 [QSA,L]
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /~jeremy/index.php?year=$1&monthnum=$2&day=$3&paged=$4 [QSA,L]
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /~jeremy/index.php?year=$1&monthnum=$2&day=$3 [QSA,L]
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /~jeremy/index.php?year=$1&monthnum=$2&paged=$3 [QSA,L]
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/?$ /~jeremy/index.php?year=$1&monthnum=$2 [QSA,L]
RewriteRule ^archives/([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?year=$1&feed=$2 [QSA,L]
RewriteRule ^archives/([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?year=$1&feed=$2 [QSA,L]
RewriteRule ^archives/([0-9]{4})/page/?([0-9]{1,})/?$ /~jeremy/index.php?year=$1&paged=$2 [QSA,L]
RewriteRule ^archives/([0-9]{4})/?$ /~jeremy/index.php?year=$1 [QSA,L]
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/trackback/?$ /~jeremy/index.php?year=$1&monthnum=$2&day=$3&name=$4&tb=1 [QSA,L]
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA,L]
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /~jeremy/index.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA,L]
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/page/?([0-9]{1,})/?$ /~jeremy/index.php?year=$1&monthnum=$2&day=$3&name=$4&paged=$5 [QSA,L]
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/?([0-9]+)?/?$ /~jeremy/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA,L]
</IfModule># END WordPress
The only bits I changed are in the “Custom stuff” area. (I didn’t realise until recently that WP over-wrote the htaccess file, so I put my modifications into a separate area, which seems to have done the trick.)
Any suggestions?
Thanks
Forum: Fixing WordPress
In reply to: Problem with mod_rewrite redirects after migration to WP 1.5Hi guys,
Thanks for the responses. I probably didn’t make myself very clear in the first post… sorry.
I know the redirection of the feed at http://www.higgs-family.net/~jeremy/feed/ and feed/rss2/ works, as I can access those and be redirected to the FeedBurner feed (as expected).
Since I moved the location of the WordPress installation, the http://www.higgs-family.net/~jeremy/wp/wp-rss2.php feed no longer exists, and so people who are subscribed to the feed at this location won’t have a working feed. What I’d like to do (and isn’t working currently) is forward any requests for wp/wp-rss2.php to feed/, so that they are automatically redirected to the FeedBurner feed.
However, some other redirection rule seems to be in effect, since accessing wp/ (even though it doesn’t exist) results in the content of the front page being displayed, except without any CSS. Accessing wp/wp-rss2.php results in the same.
I’ve tried fiddling with the redirection rules (which I posted before) to get the redirect from wp/wp-rss2.php to feed/ working, but haven’t been successful.
Any suggestions?
Thanks!
Forum: Fixing WordPress
In reply to: Problem with mod_rewrite redirects after migration to WP 1.5Hi macmanx,
Did you happen to try accessing http://www.higgs-family.net/~jeremy/wp/wp-rss2.php ?
The rest of the site works… it’s just this particular redirect to http://www.higgs-family.net/~jeremy/wp/wp-rss2.php .
Loading http://www.higgs-family.net/~jeremy/wp/wp-rss2.php in my newsreader doesn’t produce a proper feed, while http://www.higgs-family.net/~jeremy/feed/ does, so obviously the redirect isn’t working…
Forum: Fixing WordPress
In reply to: Convert ampersands in URLs?Ahhh OK, thanks for the replies. 🙂
Forum: Fixing WordPress
In reply to: Converting RSS feed to vCalendarHmmm… I just looked at the source for wp-rss2.php, and saw this line for the published date:
<?php echo mysql2date(‘D, d M Y H:i:s +0000’, get_lastpostmodified(‘GMT’), 0); ?>
If I changed it to this:
<?php echo mysql2date(‘Y-M-dTH:i:s+0000’, get_lastpostmodified(‘GMT’), 0); ?>
It would probably work… At least, I hope!Forum: Fixing WordPress
In reply to: Only one post shows upReally? 83 displays fine for me… But I know the problem now, so I’ll have to work on it a bit…
Thanks!Forum: Fixing WordPress
In reply to: Only one post shows upHmmm… looks like it was the pageviews plugin. I’ll have to talk to the author of the plugin about it…
Thanks!Forum: Fixing WordPress
In reply to: Only one post shows upI realise that http://www.higgs-family.net/~jeremy/index.php?p=83 works. It is one other post (http://www.higgs-family.net/~jeremy/index.php?p=89) that bombs out, though, and I can’t figure out why.
I just made another post, and it’s happened again. It could potentially be the page views plugin. I’ll disable that and try.Forum: Fixing WordPress
In reply to: Only one post shows upHmmm… I haven’t modified the feedback section or wp-comments at all.
I did that, and click on this link http://www.higgs-family.net/~jeremy/index.php?p=83, and it appears fine. Which ones gave problems for you?
Thanks!