Subscribe Now Log In

Htaccess Redirect Generator

instantly Generate htaccess 301 redirect code to redirect non www version of url to www version of webpage OR vise versa.



1. Select redirect type





2. Enter your domain name


Do not include www. Domain name only - e.g. yourdomain.com

3. Get your code



4. Copy the code to your .htaccess file




+200 PRO Tools For Only $2/mo ∼ ☕


Join +10k loyal clients who already use Toolslite ❤️

1️⃣ Save Time & Money + 2️⃣ Boost Productivity + 3️⃣ Increase Sales


Subscribe Now

ABOUT .HTACCESS

On web servers running the Apache Web Server software the .htaccess configuration file can be placed. .htaccess is an abbreviation for Hyper Text access. When this file is placed the Apache Web Server will detect and execute the commands in this file. This file can be used to:

  • Alter configuration of Apache Web Server
  • Enable/disable functionality and features
  • Handle redirects
  • Protect passwords
  • Deny access toy visitors by IP address
  • Redirect visitors

There are other additional functions that the .htaccess file can be coded to perform. The name of the file cannot be changed or an extension added to it. In case you change the name or save it with an extension and upload it; it will not be recognized. If you have used a Content Management System like Drupal, Joomla or WordPress you might have encountered this file. You might also have edited it. Some web servers do not allow you to edit it. But you can create your own file and upload it to specific directories.


.htaccess redirect generator

Placing all the commands that webmasters might want in the .htaccess file on the web server requires them to know html code. Yes, the commands for the .htaccess file to execute can be created using a text editor but cannot be placed as a tool.

To perform a redirect from non-www to www or from www to non-www there’s a .htaccess tool available on toolslite.com. if you want the tool to generate the code to include in your website’s .htaccess file, navigate to toolslite.com from your search browser. On the site scroll down to the .htaccess redirect generator tool icon and click on it. It has two options;

  • Redirect from www to non-www
  • Redirect from non-www to www

The default selection is the first option. Enter your domain name and press ‘get your code’ button. There’s a captcha that will require verification. Once you have done that the code generated will be displayed in the Results box. Now you can copy the code from here and paste it in your .htaccess file.

After successfully updating the .htaccess file it will perform the redirect function. Now the website visitors will be redirected to another site seamlessly,



Why choose Toolslite.com ?

We’ve made tools available in one place so you can improve your business performance and increase your work speed every day.


Unlimited & Ad-free

These tools are free, ad-free and provide you to use them any times without any Restriction.

Fast

All the tools processing is powerful. It takes less time to perform any task on any tool.

Security

We don't upload any type of files anywhere on the Server. Your files are very secure.

User Friendly

All the tools are designed for all users, advanced knowledge is not required.


Customer Stories

Are you curious to hear what some of our customers have said about us? Check out some of their stories below.


Maxime @maxime

I STRONGLY recommend Toolslite to EVERYONE interested in running a successful online business!.

Simon @simon

I use your website every day, and to be honest it is really useful and easy to use. On top of that, it is totally free. I also like the community of people using this website.

Abubakr @abubakr

هذا واحد من أكثر المواقع صدقًا التي زرتها على الإطلاق. شكرا على هته الأدوات الرائعة

Adam @adam

Toolslite fournit une gamme d'outils pratiques mais spécialisés pour vous aider dans tous les aspects de l'amélioration des performances des entreprises en ligne. Conseillé!

Dorothea @dorothea

I tried their $2 (PRO Tools) and I'm very happy with them. +60 high quality tools for around $2. it's incredible. I am sure to continue the subscription. Quality product and really cheap price.

Nazim @nazim

Hi Alan, There is nothing i have to say in this morning, i come from Indonesia and I just want to say thank you so much with your amazing tools, sincerely, you are so honour.

Daniel @daniel

Bonjour Alan, merci pour ces outils, avec seulement 2$ par mois, j'ai obtenu de nombreux outils qui sont très intéressants pour mon business en ligne sur Youtube, Instagram... Je le recommande vivement

Kristie @kristie

Super. Now Toolsite always pin on my browser. Everyone can use this tool and it's very important for who is content writers and bloggers. I'm so happy because one platform can do everything ( SEO tools, Youtbe tools, Instagram Tools, and much more... ) FInally it's simple and userfriendly.

Tally @tally

Literally it's awesome, this tool help me to grow my youtube channel and i get adsense approve in 24 hours in my website with this tool, Thank you Alan this tool help me a lot.

Raquel @raquel

Thanks ,Thanks ,Thanks ,Thanks ,Thanks ,Thanks ,Thanks ,Thanks ,Thanks ,Thanks ,Thanks , Awesome tools for every business, You are a great man i like your service thank you very much.

Corabella @corabella

Another satisfied tools, job is well done & on time.

Taddeo @taddeo

it was amazing getting to know this site.helped me alot

Ann @ann

You are a good person helping others earn money in these difficult times! Your concept is great: online business provider as an intermediary, thank you

Charil @charil

This is an amazing tool for content creators. It is easy to use, fast and comprehensive where it covers a broad spectrum of subjects.

Shari @shari

Respected sir, I had been blogging for nearly a year and i had a great problem in choosing words to my blog,and it was a great struggle until i got reffered to you ,by a acquaintance.Now nevertheless of my english vocabulary i'm able to write professional skilled post.Thanks Toolslite TEAM ,You are doing a good job!.

Ranald @ranald

this is best website i have ever used so far for my blog.

Raquel @raquel

It’s a very interesting tools…especially for a developer like me. I will share this tools with my friends… Thank you very much

Hosee @hosee

I use Toolslite since 3 month, it's one of my favourite seo websites I like the section of the keyword position, really helpful and useful keyword tools to my website.

Savina @savina

This tool is awesome! It gives me video ideas for YouTube, and because I use vidIQ too, using the keywords from here always helps me get to a 50/50 SEO score on vidIQ. The best part is that it's completely free! Huge thanks to the developers!

Anne @anne

Amazing website to learn digital marketing, SEO, Social Media Marketing, Email Marketing, etc. I also love the fact that it now offers tools like Backlink Checker, Keyowrd Research, etc.

All Reviews Write a review