How to do 301 Redirect on XAMPP (1.7.3)!!!?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How to do 301 Redirect on XAMPP (1.7.3)!!!?

Postby dominiczek55 » 01. April 2010 01:46

Need to do 301 Redirect on XAMPP (1.7.3)!!!?

Yes, Yes, Yes I removed this "#" before this line "LoadModule rewrite_module modules/mod_rewrite.so" - But it is not working!

I also tried putting .htaccess file in my directory, and I have there this:
redirect 301 / http://www.allwithtech.com/

But nothing of it works! Please could you guys give me instructions step by step!?. :idea:

That would be great. Thank you so much! :wink:
dominiczek55
 
Posts: 3
Joined: 01. April 2010 01:44

Re: How to do 301 Redirect on XAMPP (1.7.3)!!!?

Postby Narrowboyy » 04. April 2010 09:42

dominiczek55 wrote:Need to do 301 Redirect on XAMPP (1.7.3)!!!?

Yes, Yes, Yes I removed this "#" before this line "LoadModule rewrite_module modules/mod_rewrite.so" - But it is not working!
This step is correct and after saving the file restart Apache.


dominiczek55 wrote:I also tried putting .htaccess file in my directory, and I have there this:
redirect 301 / http://www.allwithtech.com/
I assume you want to redirect your http://allwithtech.com to http://www.allwithtech.com.

So give this a try in the .htaccess file in the root directory of your web site, instead of the entry you tried above.
Code: Select all
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^allwithtech.com [nc]
rewriterule ^(.*)$ http://www.allwithtech.com/$1 [r=301,nc]


BTW if you get errors from using a .htaccess file, check the /apache/logs/error.log file for clues.
Narrowboyy
 
Posts: 64
Joined: 16. February 2009 02:56

Re: How to do 301 Redirect on XAMPP (1.7.3)!!!?

Postby dominiczek55 » 04. April 2010 22:06

Hey!

Thank You so much for posting the information!!! I pasted it in that file. I hope it is going to work. I'll write back if yes. And just for curcity, how long will it take to get my results indexed (while removing those old 404 pages)?

I want to remove old 404 pages, outdated results!!! :)

By the way I am using google web master tools and my "removal page request is pending" (for outdated pages, 404 pages) - Is it ok, or I should cancel the request :?:

Thanks again!!! :D

:wink:
dominiczek55
 
Posts: 3
Joined: 01. April 2010 01:44

Re: How to do 301 Redirect on XAMPP (1.7.3)!!!?

Postby Narrowboyy » 04. April 2010 23:46

dominiczek55 wrote:I pasted it in that file. I hope it is going to work.
To test that it is working type in your browser:
http://allwithtech.com
You should be redirected and see this in your address bar in your browser:
http://www.allwithtech.com

dominiczek55 wrote:And just for curcity, how long will it take to get my results indexed (while removing those old 404 pages)?
Only Google can answer that - usually it does not take long once they are aware of the changes that you have made in the tools section.

dominiczek55 wrote:By the way I am using google web master tools and my "removal page request is pending" (for outdated pages, 404 pages) - Is it ok, or I should cancel the request :?:
That's OK and no need to cancel as this may speed up a re-index of your site - there is a religious holiday currently in progress so may be after the holidays there will be more action from Google.
Narrowboyy
 
Posts: 64
Joined: 16. February 2009 02:56

Re: How to do 301 Redirect on XAMPP (1.7.3)!!!?

Postby dominiczek55 » 05. April 2010 00:06

Thanks for the reply, again. I just want to make sure again about one more thing.

I want those old outdated pages (404) to be removed from results. - This is what I just really want. - just in case if I did not make it clear earlier. :?

Again Thank You for the information! :D
dominiczek55
 
Posts: 3
Joined: 01. April 2010 01:44


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 57 guests