Forums

htaccess redirect - one command to cover all? (2 posts)

  1. JG99
    Member
    Posted 2 years ago #

    I am have changed the URL's for some of my blog pages - is there one command I can put in my .htaccess file that will cover ALL "not found" pages or any other sort of error page? I found this on another site, will it do the job?

    RewriteEngine On

    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]

    RewriteRule \/.+ / [L,R]

  2. JG99
    Member
    Posted 2 years ago #

    Basically, I want any sort of error to go to my blog's home page. I am open to other methods, including the plug-in "redirection," but I have heard that the htaccess method is the best way to go.

    I would appreciate feedback on this issue.

    Thank you very much!

Topic Closed

This topic has been closed to new replies.

About this Topic