My question is. I'm hosted at tetrahost.net. I want all of the pages to say this: gamers.puck3d.net instead of: gamers.tetrahost.net any suggestions on how to do this with a .htaccess file? gamers.puck3d.net is an add-on domain. And also I would like this to be applied to every page in every subdirectory.
At gamers.tetrahost.net/.htaccess Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^([^.]+)$ http://gamers.puck3d.net/$1/ [R=301,L] or try RewriteRule ^(.*)$ http://gamers.puck3d.net/$1/ [R=301,L] if some stuff doesn't redirect right. This would redirect everything from tetrahost.net to the other host.
Greetings! We changed our old site from .asp to .php, using Joomla. After we got 'page not found' on Google, we implemented the 301 redirect. However, for technical constrains, we are still using IIS server. The result is that we don't see the images on our new site. Is there any solution? Cheers.
Theres some kind of IIS rewrite that does what mod_rewrite does, but mod_rewrite doesn't work on Windows. http://www.motobit.com/help/url-replacer-rewriter/iis-mod-rewrite.asp http://www.shareit.com/product.html?productid=170436&languageid=1&nolselection=1&affiliateid=73373
neiter of those works: http://www.gamers.tetrahost.net/new.shtml there is no other host. I got gamers.puck3d.net from http://freedns.afraid.org/ ------------------------------------------------------------------------------------------------------- this is what gamers.tetrahost.net is running on: Operating System Linux Apache version 1.3.36 (Unix) Kernel version 2.4.21-40.EL
Do a .htaccess test Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^wacko\.shtml$ index.shtml [L] if it's index.shtml for the index and see if domain.com/wacko.shtml works. If that doesn't, try it with out the first two lines. If that doesn't, you don't have .htaccess support. Both of the URLs do have the content. http://gamers.puck3d.net/nintendo/nes/ http://gamers.tetrahost.net/nintendo/nes/
It failed the test also and yes, both have content but I don't want to be penalized for duplicate content. http://www.gamers.tetrahost.net/wacko.shtml
That does work!! Compair http://www.gamers.tetrahost.net/wacko2.shtml and http://www.gamers.tetrahost.net/wacko.shtml wacko.shtml does show the index page. Make a post at webmasterworld.com/apache/ The real Apache King is there. That code up there should do it.
ok, i looked it over and yea, wacko.shtml did redirect the index page.... so thats what you to http://king-of-da-wackos.com ..... but why doesnt it change this url http://gamers.tetrahost.net/wii/shop.php and others to the right one?
Not sure if it'll help. Since you got files that don't end in / and got directories... Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^(.*)/(.*)/(.*)\.php$ http://gamers.puck3d.net/$1/$2/$3.php [R=301,L] RewriteRule ^(.*)/(.*)\.php$ http://gamers.puck3d.net/$1/$2.php [R=301,L] RewriteRule ^(.*)$ http://gamers.puck3d.net/$1 [R=301,L]
365 days old, Happy Birthday to Your thread Nintendo. Best of Luck and Thanks for very good info and Help Provided to all of us.
I have domain.com/index.php?page=filename structure And am using RewriteRule ^(.*)\.html$ index.php?page=$1 [L] to get domain.com/filename.html This works for most my pages. I have some pages that I want in folders. I have filename1, filename2, filename3, filename4...... that I want to be shown as domain/filename1/index.html (where index.html is filename1.html) domain/filename1/filename2.html domain/filename1/filename3.html domain/filename1/filename4.html What is the best way to do this? I could just use: domain/filename1.html (notice=> no folder here) or domain/filename1/filename1.html (double dose of keyword jam ? ) domain/filename1/filename2.html domain/filename1/filename3.html and create folder name with RewriteRule ^filename1/(.*)\.html$ index.php?page=$1 [L] But that may mean that the leading page for that folder, and its contents, is not in the folder (if I use domain.com/filename1.html). Does that matter, SEO wise. I think it does, a bit. Plus having it all under the folder looks better in URL's Or i got some url keyword spamming if i use filename1/filename1.htm Or I just create a different name for folder and filename1. (as in, foldername/filename1.html) Hit 2 realated, but different, key phrases. My one problem with this is: My on site hard links will point to domain.com/filename1/filename2.html, but you could type in any page with that folder in url and get a valid page. example domain.com/filename1/filename13.htm (but i don't want 13 in that folder) Does this matter since SE's will see no links to these "potential"? Or should I 301 them back to index.php, or not bother. Who's going to be typing in multiple folder/filename combos for the hell of it? (besides me) What would a wacko do?
Hi, i'm trying to use: Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^foldername/(.*)$ http://www.domain.com/$1/ [R=301,L] that doesn't do anything but sends me to the 404 error page of the original site, and if i use RedirectMatch permanent ^/foldername$ http://www.domain.com that makes the redirection fine.. but i want to pass the PR, what could be wrong and what can i do?
Not sure if it'll do it, take out the / at the very end. RewriteRule ^foldername/(.*)$ http://www.domain.com/$1 [R=301,L] or RewriteRule ^foldername/(.*)$ http://www.domain.com/ [R=301,L] if you want them all to the URL in the RedirectMatch permanent code there.
i tried and it didn't work :/ what's the difference doing it with [I]redirect 301 /directory http://www.domain.com[/I] Code (markup): i tried that and it worked, just want to be sure that will help to pass the PR