• Hi.

    My question is regarding 301 redirection.

    I normally use plugins to redirect pages, posts, images etc, or regex expressions.

    But the same can be accomplished using .htaccess file on my Litespeed server and hosting.

    I have around 150 redirections for a typical website.

    Will the site slow down if i put all the redirection code in .htaccess or do you recommend using the plugin for so many redirections.

    What about the case when the number of redirections are less like 10 or 50?

    How does it affect the site speed?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    I would recommend redirecting via the .htaccess file only for advanced users.

    .htaccess files are definitely faster than redirects from a plugin since the webserver can directly return the redirect, with the plugin the webserver has to first start a php process to initialize wordpress, and then sometime later the plugin can make the redirect.

    So if you are comfortable with “coding” in the .htaccess then you can go ahead and make those redirects in the .htaccess to speed them up <span style=”text-decoration: underline;”>a bit.</span>

    Thread Starter shreen2008

    (@shreen2008)

    What about the number of redirection lines for eg. 150 to 700 in .htaccess file. Will that impact server and site speed? Also how does it impact server performance?

    I don’t think this will make a noticable impact, I found this very interesting article from a guy who tested all that out and shared his findings in numbers: https://www.seomike.com/blog/how-many-htaccess-redirects-are-too-many/

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Regarding Redirection’ is closed to new replies.