Htaccess Redirect Generator





Alert! Connect with 10,000 Chating Online. Join Now

.Htaccess redirect Generator online

Please leave blank and don't tick any htaccess rule you don't require .

seo 301 redirect path
old webpage url
new webpage redrect url

seo 301 redirect directory

old webpage location
new webpage redirect location
seo 302 redirect path
old url path
new url redirect path
non www to www (http://yousite.com to http://www.yousite.com Site Url eg mysite.com
www to non www (http://www.yousite.com to http://yousite.com Site Url eg mysite.com
Custom 400 error
400 Error path
Custom 401 error
401 Error redirect webpage
Custom 403 error
403 Error redirect url
Custom 404 error
404 Error redirect page
Custom 500 error
500 Error page
change default page (index.htm to home.php).
Enter what you want to use as your default page
Block ip or deny ip ip address or ip addresses separeted by comma
Allow ip or Allow some ip and deny others
ip address or ip addresses separeted by comma
Password protect a file or directory Enter file name

Enter htpasswd path
Turn on file commpression (gzip) to decrease page size and increase loading speed
cache images , css files and pages to increase page loading speed

public private must-revalidateEnter File extension or extensions separated by comma css,gif
Prevent viewing of .htaccess
change https to http Full site name http://www.mysite.com
Prevent directory listing
prevent bandwidth stealing or hotlink protection Your site url Enter file extension or extensions separated by comma eg jpg,gif No hotlink image
     

.Htaccess Rewrite Generator

.Htaccess generator is a free tool used to generates htaccess files and htaccess redirect syntax parameters for a webserver such as apache, is etc. you don't need to have knowledge of mod_rewrite before you can use this free tool. All you need to do is to identify the htaccess command you need and use the form above to generate it. Generation of .httaccess custom 404 page , 401, 402, 403, 501, error pages are easy and htaccess redirects and password syntax parameters generation is a snap.

The .htaccess file is a small text document that generally sits at the root of your server in the same location as your index.php or index.htm pages. It gives you the ability to interact with Apache and control directores or domains n your web server on an domain-to-domain and directory-to-directory basis. htaccess files are placed at the root of your web server or in any drectory in the server which you want to give a special control drectives. For instance where you'd like to control the flow of visitors in a server you want to protect directories and redirect the traffic visiting those pages. This page will generate you the rewriterule syntax parameter to use in the .htaccess file to redirect your visitors in different ways. Note that this is a powerful system file, if the syntax is incorrect in anyway, it could render your site unusable. Always backup your old .htaccess.

Manually creating these RewriteRules can be time consuming and error prone. This tool will generate the rules for you. Enter your old page to new pages then click the generate button. Copy the resulting code into your .htaccess file then click or refresh ur webpage to see the webpage is redirecting as expected and if it is not redirecting as expected check the page u entered. Htaccess to redirect generator tool is very easy to use, all you need to do is to enter the correct webpage in old and new webpages. I find the simplest way to do this is to create an Excel file with two columns. Place the old pages in the first column and the new pages in the second column. Then just copy and paste the cells into the form below. You only need to enter the path for each page and not the whole URL. e.g. about-us.htm. Just using paths means the rules generated are domain name independent. If you enter the full URL then the code generated will also take the domain into account. This way you can have the rule only apply to a single domain or have the redirect switch to a different domain

This tool is provided free of charge use at your own discretion, if you change the content of your htaccess file and notice a 500 error, just remove the last htaccess code added to correct the problem. Using this tool you can also generate htaccess codes to block bad bot ip or a user ip that is harming your site. Turning file caching, image caching, site compression is very easy with this htaccess generator.

 

 

 

 

 

 

 

 


   

Copywright 2012 htaccessredirect.org