how to Redirect using .htacces
Hi i know ho to redirect 1 page to another page in your website but i want to Redirect over 90 Pages to new pages . how to do this ? can any one help me here.
Hi i know ho to redirect 1 page to another page in your website but i want to Redirect over 90 Pages to new pages . how to do this ? can any one help me here.
Greg K posted this at 19:51 — 6th December 2011.
He has: 2,145 posts
Joined: Nov 2003
Basically you would redirect all non existing pages/directories to a specific script.
That scripts looks up where you were actually trying to go to, and if it finds a redirect, does a header() redirect and exits.
if nothing matches, then treat is as a 404 page (don't forget the header('HTTP/1.0 404 Not Found'); so search engines see it as a 404).
-Greg
robiul223 posted this at 12:53 — 7th January 2013.
They have: 6 posts
Joined: Dec 2012
I think you are really correct.your link is very healpful for us
Johnybang posted this at 09:00 — 28th May 2015.
They have: 3 posts
Joined: May 2015
Thanks Greg
I have read your replies on other post too, thanks for sharing good knowledge with us.
Venus Brown posted this at 06:39 — 28th December 2011.
They have: 31 posts
Joined: Dec 2011
If your website is in Drupal you can download a module which automatically sets the redirect to all your earlier website pages to the new one.This could be done with all the other website which are in CMS.Else if its in plain HTML, you have to do it manually.
briccio posted this at 04:56 — 17th September 2012.
They have: 2 posts
Joined: Sep 2012
create a file and name it .htaccess, Once the file is created,
put it at your root directory http://www.yourdomain dot com/.htaccess
Create another file name it maintenance.html
Now you can try to browse your site and it should now redirect you to maintenance.html
Nullified posted this at 16:46 — 17th September 2012.
They have: 12 posts
Joined: Sep 2012
put it at your root directory http://www.yourdomain dot com/.htaccess
Create another file name it maintenance.html
Now you can try to browse your site and it should now redirect you to maintenance.html
How is it going to redirect to maintenance.html without editing the .htaccess file to tell it to do so?
andyrojar posted this at 13:11 — 24th January 2013.
They have: 2 posts
Joined: Jan 2013
with the help of .htacces file we can solve canonical issue, 301 error, 302 error and 404 error. .htacces file play main important role in web server.
localpages12 posted this at 12:21 — 27th November 2013.
They have: 5 posts
Joined: Aug 2013
Thank you briccio .. .ht file is working fine for me.. i really need that thank you so much
SallyMark posted this at 03:35 — 3rd December 2015.
They have: 1 posts
Joined: Dec 2015
If your website is in Drupal you can download a module which automatically sets the redirect to all your earlier website pages to the new one.This could be done with all the other website which are in CMS.Else if its in plain HTML, you have to do it manually.
jackluter posted this at 11:43 — 14th April 2016.
He has: 2 posts
Joined: Apr 2016
Yes through .htaccess you can load pages in notepad and use redirection techniques.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.