Member Avatar

Hi, I am trying to write a .htaccess script that can redirect any URL on my site (whether it exists or not, including sub-domains) to the index page of that site. For example: example.com/pages/page.htm ---> example.com sub.example.com/page.htm ---> example.com error.example.com/error ---> example.com I've tried a few things with mod_rewrite but I can't seem to get existing urls, non-existing urls and sub domain urls to all direct to the index page. Thanks, Martin

Member Avatar
0
28
Member Avatar

I moved my old site to the new domain and have parked the old site over the new domain. Any ideas how to do the proper 301 redirect so the old site redirects each page to the new site. So: http://dwhs.net/web-hosting-plans.htm Redirect to: http://webhost.pro/web-hosting-plans.htm So far I just have: Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} !=webhost.pro [NC] Thanks, Charley

Member Avatar
0
5
Member Avatar

Hi folks, I've recently got into doing a bit of web development and got hosting for it. The website is consisted of mainly 3 separate folders(one for home page, 2 for 2subdomains) under the html root directory to avoid cluttering. To get to my home page on my main domain, I used to do a redirect via a html meta refresh, so i would have an index.html file under the root directory which then redirects into the 'homePage' folder. I have since learnt that this is ugly and not a recommended way to do so. At the moment I have …

Member Avatar
0
12
Member Avatar

Hi I have 4 affiliate sites that are all in the same niche and I have bought the domain names mainly because they are frequently searched for terms in google. However to update all four daily would take more time than I have, so I am considering doing a 301 redirect from two of the sites, so I only have two to update. From a search engine perspective is this sensible? I have not built the sites yet or started building links, but say I built links to one of the ones that I will redirect, will Google punish this …

Member Avatar
0
6
Member Avatar

So a client of mine has about 150 domain names, all of them he is wanting to redirect to the primary domain name. I have done something like this for each domain name in the .htaccess file: Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^domain12.com$ [NC] RewriteRule ^(.*)$ http://www.primarydomain.com/$1 [R=301,L] Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^www.domain12.com$ [NC] RewriteRule ^(.*)$ http://www.primarydomain.com/$1 [R=301,L] Now this works if you are in the root index (home page). As soon as you go to something like **www.domain12.com/about** then it just loads the page but doesn't redirect the url. Does anyone know what's causing this?

Member Avatar
0
20
Member Avatar

I have a server which is hosting just a single site and because of this, I intend to redirect all traffic from domains which isn't mine to my domain. For example, if a random person decides for some reason to point their domain to my server, when my server gets the request it redirects to my domain. I have tried various rules in teh .htaccess then going to the IP address to test this but each time I try, it stays on the IP address and doesn't redirect to the domain. Because of this, I decided to start working on …

Member Avatar
0
9
Member Avatar

Hello, I am having a bit of trouble using 301 redirects. I have used the following format, successfully, on many occasions (putting the following code in the .htaccess file and loading into the directory of the domain I wish to redirect): "redirect 301 /oldpage.html http://www.newdomain.com/newpage.html" The problem is that the pages are redirecting to: http://www.newdomain.comnewpage.html In every instance, the slash trailing the domain name is being ignored. I am currently redirecting about 100 pages, and my website is hosted through GoDaddy. I've used this method in the past flawlessly, so I'm a little puzzled as to what I am doing …

Member Avatar
0
2
Member Avatar

I'm trying to redirect about 40 web addresses from an old site to a new site. I was able to redirect all of the pages that DO NOT have a ".aspx" in them to the new site using .htaccess but I cannot figure out how to redirect the .aspx links. I was told I need to do it in the web.config file. Can someone please help? I moved a site from [url]www.handstands.com[/url] to [url]www.randombuy.com[/url]. Here is an example of a link that works using .htaccess and one that does not. [B]Works[/B]: [url]http://www.handstands.com/info/About_Us[/url] [B]Doesn't work[/B]: [url]http://www.handstands.com/p-294-keuken-5-piece-ceramic-knife-set-with-bamboo-block.aspx[/url] (should go to: [url]http://www.randombuy.com/p-294-keuken-5-piece-ceramic-knife-set-with-bamboo-block.aspx[/url]) Any …

Member Avatar
0
8
Member Avatar

We have permalinks for each individual post in the forum in the format `/posts/jump/123`. These URLs do a 301 redirect to the post in the full article, such as `/full-article-url#post123`. The landing pages have canonical URLs set to the full article URLs. I just recently started having the issue of the shortened URLs appearing in Google as opposed to the full page versions. This is obviously an issue for two reasons. 1. We lose all the breadcrumb information in the SERPS 2. Multiple short URLs all point to the same destination URL, so we obviously want the one preferred URL …

Member Avatar
0
12
Member Avatar

Hello, I have decided to move away from my current web designer and host and go with Word Press and a completely new web host. I am going to use a new brand specific domain name (my company name) instead of my current keyword domain. I want to work on brand recognition and move away from any customer disconnect with my brand. I know I need to do some 301 re-directs but does my new web host or old web host handle this (or both)? Also, I wanted to remove all of my domains from my old web host and …

Member Avatar
0
14
Member Avatar

Hi We are moving from one shopping cart to new one. we have about 4500 product links. is there anyway to make a general to move domian.com [url]http://www.domain.com/SearchResults.asp?Search=1234-111&Extensive_Search=Y[/url] to domain.com/search/q=1234-111 I don't really care about the -1111 (last 4) is there anyway to make this dynamic so I don't have to go through all 4500 links ? Thanks

Member Avatar
0
2
Member Avatar

Hi We have moved our site with a new system with a new structure. the domain is the same just structural changes, and I cant seem to get the htaccess right. Here is what i am trying to accomplish: move this: [B][url]http://www.domain.com/chairs/519.htm[/url][/B] to: [B][url]http://www.domain.com/catalogsearch/result/?q=519[/url][/B] we have over 5000 links so I was hoping that the "?q=" could have the sku number (519) after it dynamically. Example, if a search was made for anything ending 600.htm it would go to [url]http://www.domain.com/catalogsearch/result/?q=600[/url] any advise is greatly appreciated.

Member Avatar
0
4
Member Avatar

Hi, I'm on an Apache server. I'm trying to create a permanent redirect of an entire website to a single page on the new site. I'm using this: Redirect 301 / [url]http://www.cvm.org.uk/wales/index.php[/url] Redirect 301 /links.php [url]http://www.cvm.org.uk/wales/index.php[/url] The first line works fine for the index.php page of the site. The second line is for the links.php page which is in the root of the site but when redirected it links to: [url]http://www.cvm.org.uk/wales/links.php[/url] which does not exist and therefore gets a 404 error. I've ensured that I've uploaded the .htaccess file in ascii mode. As an aside what I'd like to do …

Member Avatar
0
5
Member Avatar

I have page1.html that is being 302 redirected (temporary redirect) to page2.html page2.html is disallowed in my robots.txt file Under normal circumstances, when googlebot encounters a 301 redirect from page1.html to page2.html, it will index page2.html, and when googlebot encounters a 302 redirect from page1.html to page2.html, it will index page1.html Since, theoretically, the url of page1.html is what would be indexed, would it still be indexed considering page2.html is blocked?

Member Avatar
0
6
Member Avatar

Hello all, How would I go about getting my site to redirect any visitor to [url]http://site.com[/url] rather than [url]http://www.site.com?[/url] I have searched the forums here and have tried various coding people have provided but none of it seems to work. Could someone maybe post a step by step guide on how to do this including code, where to put the code and server settings to allow it?

Member Avatar
0
6
Member Avatar

Hi everyone, I have designed my website from 6000 static HTML pages to a more structured system. However I am not carrying over same structure so I will need to setup a bunch of 301 permanent redirects in order to keep my search rankings. (have spent a lot of money on google). The issue is that I have a list of over 1000 links that I want to be redirect to the new directory. How can I build a php script that can do this for me?

0
1
Member Avatar

Rebuilt an existing site: Old site used aspx pages, for example: [url]http://www.americascarshow.com/Detail.aspx?dct=11&mid=1656[/url] (broken) New site is in Joomla; new link is: [url]http://americascarshow.com/gadgetcentral[/url] I tried a 301 redirect in .htaccess file but cld not get it to work. I need a solution to redirect links to new pages and/or at least get them to redirect to the site's homepage. Thanks in advance for any help!

Member Avatar
0
6
Member Avatar

hello everyone. im using a cms and i have just changed the strucutre of my site's url making changes in the core files. here is an example what i have done. at first urls were: [url]http://www.linkzdirect.com/photo/gallery/picture-name[/url] now they are chagned to : [url]http://www.linkzdirect.cm/[/url][COLOR="Red"]art[/COLOR]/gallery/picture-name everything seems to be working fine. i also made these chagnes in .htacess. works fine. but a large number of my site's pages are indexed in google and other engines and i get traffic from that. so is there a way i can put a redirect code in .htacccess and it will redireect all the url containing …

Member Avatar
0
6

The End.