SEO Services
Home >>
Webmaster Forums >>
Rewrite rules not workingRewrite rules not working
chris3471 said: "Rewrite rules that worked before aren't working now.:eek: :confused:
I'm getting redirected to the homepage now.
[url]http://bloggeries.com/blog[/url]
[url]http://bloggeries.com/blog/[/url]
I checked the main .htaccess and it's fine.
Here's what I've got in the blog directory:
# BEGIN WordPress
RewriteEngine On
RewriteBase /blog/
RewriteRule ^/*(.+/)?([^.]*[^/])$ http://%{HTTP_HOST}/blog/$1$2/ [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.bloggeries\.com
Rewriterule (.*) http://www.bloggeries.com/blog/$1 [R=permanent,L]
RewriteRule ^home/blogger/public_html/blog /blog/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
# END WordPress"
quinny said: "seems fine to me..."
chris3471 said: "Strange, it's working now. Maybe it took some tome to take effect."
Darren said: "Makes no sense. Is your old server still running?"
chris3471 said: "No idea. I know the night before last the site went down for a while, don't know why though, could have been Jamey working on something. Anyway though the mod_rewrite rules had reverted back to the old ones. I changed them back to the new ones but it didn't take effect right away. :eek:"
Darren said: "All's well that end's well."
chris3471 said: "Thankfully, I was so worried that we were going to have to go back to the drawing board."
Darren said: "Make a complete backup of a working configuration. It can come in handy later."
chris3471 said: "I did that the first time. Then I forgot where I put it. So I went back through the thread and got the right configuration and changed the file. Then I found the backup, I had put it in the file that Dreamweaver set up for the local site. Well I won't forget where it is now though."