I guys! i need your help. I want to remove my website section www.pakistans.com/mobile and want to permanent redirect to www.nokialoverz.com Plz guide me step by step how can i redirect through 302. so i can not lose my SEO Thanks in advance
If your host is linux then just create a file as .htaccess and then upload it to pakistans.com/mobile/ with the following content. Redirect 302 / new url
302 is Termporarily Moved... 302 WILL make you lose credit for your links... You need to 301 redirect to tell the search engines that the pages have Permanently Moved so they will give the new URLs credit for the inbound links to the old URLs. The most important thing is to 301 redirect each old URL to the equivalent new URL whose content most closely resembles the content found at the old URL. That is so the link text of inbound links to the old URL will be applicable to the new one. If you're hosted on an Apache web server then you likely have lots of utilities at your disposal to accomplish this. The most popular, well-known is named Mod Rewrite. As the previous poster said, you create .htaccess files with regular expression pattern matching and rewriting rules in it to tell Mod Rewrite which requests should be redirected to where... For example, if you the page names and web structure on the new site is the same (you didn't change any page names or folder names) and you simply want to move http://www.pakistans.com/mobile/* to http://www.nokialoverz.com/ then in the /mobile folder of the old web create a text file called .htaccess with something like the following: This should match on anything that appears after /mobile in the old URLs and append it to the new domain.
from the last line of yours.. if i did like you said, is it mean that if some one open www.pakistans.com/mobile/themes/etc then he will redirect to nokialoverz?
It means if someone requests www.pakistans.com/mobile/themes/etc then they would be 301 redirected to www.nokialoverz.com/themes/etc. Basically www.pakistans.com/mobile will always be replaced w/ www.nokialoverz.com and the rest of the URL will stay the same.
oh thats bad coz all Url changed onboth websites is it possible that if some one open pakistans.com/mobile/etc then they will redirect to only nokialoverz.com:-?
at leas i redirect the web using this code: redirectMatch 301 ^(.*)$ http://www.domain.com redirectMatch permanent ^(.*)$ http://www.domain.com
Once you put the 301 redirects in place, they need to remain in place forever... You will have to continue to host the old website, keep the old domain registered, and leave the redirects in place for as long as you want the new site to benefit from the old site's inbound links... If you later remove the redirects then when the search engines recrawl those inbound links to the old URLs, they will begin seeing the old site's pages again (instead of the 301 redirects), index the old URLs, and transfer credit for the old URLs' inbound links back to the old URLs. So your new site will no longer get credit for those links to the old site. And your old site will get indexed again. If you simply shutdown your old site in the future (stop hosting it) then when the search engines recrawl those inbound links to the old URLs, they will begin seen 404 Not Found errors when they request an old URL rather than a 301... Eventually, after several crawls with 404 results the new pages will lose credit for the inbound links to your old URLs and any SEO benefit they might have provided.
Anything is possible w/ Mod Rewrite. If all of your URL structures have changed and there are no patterns the redirects can use (for example, pakistans.com/mobile/etc/somepage.html is moved to nokialoverz.com/somenewfolder/somenewpagename.html) then you have 2 choices: 1) The best option is to code one-for-one redirects for every old URL pointing to the equivalent new URL whose content most closely represents the content of the page at the old URL. You do this so the link text of the link to the old URL will be applicable to the new page. 2) The last resort worst option is to simply redirect ALL old URLs to the the home page of the new site. You can do this simply by placing a .htaccess file in the old pakistans.com/mobile folder like:
the code you mentions not working so i am using this one redirectMatch 301 ^(.*)$ http://www.nokialoverz.com redirectMatch permanent ^(.*)$ http://www.nokialoverz.com Code (markup): working fine BTW thanks for help.. i am lucky to find you here
You want 301 not 302. If you don't have access to htaccess you can put this in an index.php file: <? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.new-url.com" ); ?> Code (markup):