Moved Content From Root To Subdomain And Need To Redirect Visitors
Mar 16, 2007
I moved my content from www,mysite,com to subdomain,mysite,com. I'd like to direct people who come to my site from search engines to the new location of the content.
For example, if they searched for pink purse and the search result was www,mysite,com/pink_purse,html, when they click that link, I'd like for them to redirected to subdomain,mysite,com/pink_purse.html. Can this be accomplished with some .htaccess magic?
We have an established site for which we want to add a 'mobile-appropriate' subdomain geared to phone surfers.
Our host (1and1) confirms their servers detect mobile visitors but they couldn't help me with how to read the server flag(?) or whatever and then redirect the server to our mobile subdomain when appropriate.
Can anyone point to an appropriate how2? (Note I don't need "mobile code" help help - just help with how to redirect mobile visitors transparently off our main site and into its mobile subdomain).
I have what seems to be a simple redirect question. I have a dedicated server and a few static IP addresses, but I want to make it so if someone were to type in my IP address in their browser, Apache will redirect them to the domain name. (Typing in [url]
What happens now is that if you were to type in my server's IP address, it will show you the FIRST VirtualHost container that's listed in httpd.conf. This is not so bad since I've placed my main company site at the start of the list, but I'd rather redirect the IP into the domain name I use.
I read somewhere that you can place Mod RewriteRules directly in the VirtualHost container rather than using .htaccess, but the few "rules" that I tried didn't seem to do anything. And yes, I restarted Apache each time I edited httpd.conf.
Is there an easy way to do this?
ALSO, is there a way to redirect the name server address too? If you type in [url]into the browser, it acts the same way. I would ultimately like to redirect both the nameservers and the IP address(es) to the domain name.
My client has just purchased hosting (not through my hosting company but one they wanted to use) for their main domain but they also have a number of more specific domains that need to be pointed to a specific page in the website. The trouble is that for these additional the new host say they can only point to the main domain (IP address) at DNS level and not to a specific page.
Any idea how to go about this (apart from using another host!)? Can I use a script that can tell what url they have typed into their browser and forward them to the correct page? I want to avoid the need for a hosting package for each domain just for a simple redirect page!
I am trying to do is have a redirect so the files get redirected to a subdomain. So domain.com gets pointed to domain.newdomain.com. However, I want to keep the current URLs, so say I got [url], the below code is just redirecting that url to [url]rather than [url]
I wasn't able to just export and import so I had to manually recreate content. I used the same permalink structure in hopes that I "might" be able to do a re-direct. Just now sure if A)It is possible or B)How to do it.
Example: OLD LINK: [url]
NEW LINK: [url]
Am I able to redirect all traffic that comes in and replace the "www.cgcookie.com/articles" with "cg.cgcookie.com"?
How do I redirect to subdomains with discountasp hosting?
They give an example in their knowledge base (won't let me link it), example, they are assuming you're a programmer.
Is there any code that works that I can just paste into a Visual Studio 2008 web app project and upload that to my site? Or is it more complicated than that?
Customer service was no help at all.
Am I expected to be an experienced ASP.NET programmer in order to use discountasp as my hosting? I am learning asp.net and c# and I got discountasp because they seemed to have all the cutting edge Microsoft technologies.
creating a basic redirect. What I need is to redirect the root of my server 173.x.x.x to a file called test.php in the root of my folder.example: when I go to http://173.x.x.x I get redirected to http://173.x.x.x/test.php..
Source site is very chaotic (static pages + wp pages) and there are no clear rule for redirection (no regex ).So I need to redirect every single page but syntax:
Redirect 301 esp.site.com/oldpage http:// es.site.com/newpage doesn't work!I think "esp.site.com" in source page is not acceptable syntax..which is the correct syntax ? Can I manage all from one .htaccess file in main root (www) or should I create "esp" directory (and point old subdomain to it - one for every language) and put .htaccess in every directory with redirection ?
I would like to do do following using basic authentication:
1. non authenticated users have access to the index page: [URL] ..... 2. there are other pages, e.g: [URL] .... but these would require basic auth 3. if users are not authenticated they would be redirected to [URL] .... otherwise authenticated users would have access to [URL] .... or anything else under that domain
I want to add a subdomain foo.bar.com to a master domain bar.com in the subscription bar.com. Normally this works but if I set the hosting type of the master domain to forward, I cannot add subdomains anymore. If I have already added a subdomain, I cannot change the hosting type of the master domain. Also it is not possible to add a second domain to the subscription anymore.
I am trying to setup a subdomain and/or virtual host to redirect to a specific port and path. I have setup my server with DDYNS through my domain name registar. Through the ddyns client I have set it to assign a subdomain of "outside.name.com" so that my server will have a easy name to get to instead of a dynamic ip address.
I have also setup on my registrars host records another subdomain of "inside.name.com" with a static IP address for internet network accessing to my server.My problem is that I have a service/program on my server that I need access to both internally and externally and this service can only be access through a port of 32400 and HTTP address of /web. (e.g. outside.name.com:32400/web or inside.name.com:32400/web)...
Is there a way that I can create a VirtualHost or Subdomain of "service.*.name.com" that redirects them to ":32400/web" of the hostname they're on? (e.g. service.outside.name.com automatically forwards or proxies--to keep it pretty--to service.outside.name.com:32400/web)
I am trying to setup a subdomain and/or virtual host to redirect to a specific port and path. I am, however, having great difficulties doing this.
I have setup my server with DDYNS through my domain name registar.
Through the ddyns client I have set it to assign a subdomain of "outside.name.com" so that my server will have a easy name to get to instead of a dynamic ip address.
I have also setup on my registrars host records another subdomain of "inside.name.com" with a static IP address for internet network accessing to my server.
My problem is that I have a service/program on my server that I need access to both internally and externally and this service can only be access through a port of 32400 and HTTP address of /web. (e.g. outside.name.com:32400/web or inside.name.com:32400/web)
This is annoying for others to type out and I am just wanting to make it look pretty. Is there a way that I can create a VirtualHost or Subdomain of "service.*.name.com" that redirects them to ":32400/web" of the hostname they're on? (e.g. service.outside.name.com automatically forwards or proxies--to keep it pretty--to service.outside.name.com:32400/web)
Now cpanel is having some issues. Certain places acknowledge the new IP, others don't. IE all of my nameservers are still set to the old IP's and I can't seem to change them because they are already asigned to the old ones, etc. What can I do to try to fix all of this? Is there an easy tool? Is there a file I can just change?
Question for people who have moved to InnoDB: I wonder if it is worthwhile?
I don't care about ACID compliance, my only interest is in the row level locking which I do not get with large MYISAM tables which do table locking and clog up everything. I have a huge database that needs frequent updates, like 50,000 per hour. I also don't care about InnoDB's large size of indexes and such, I have lots of hard disk to throw at it.
My fear is with the backup of InnoDB tables, and the fact that it is not as simple to "fire up" the tables when I restart the database. MySQL manual suggests something like a query to "Warm up" the tables.
Any thoughts would be great, and if possible, any help with what settings you use. FYI, I am on a 4GB RAM machine with dual Core2Duo procs. When I tried the following in my.cnf for the InnoDB stuff ---
Code: #skip-innodb innodb_buffer_pool_size=1G # Set the log file size to about 25% of the buffer pool size innodb_log_file_size=250M innodb_log_buffer_size=8M innodb_data_file_path=/idbdata1:200M:autoextend innodb_additional_mem_pool_size=20M innodb_log_group_home_dir = /iblogs innodb_log_files_in_group = 2 innodb_flush_log_at_trx_commit=1 innodb_lock_wait_timeout=10 --- the MySQLD wouldn't start! Question about the stuff in red: what're those paths for?