I have the URL of my website: www.domain.com and I have setup a wordpress blog on blog.domain.com.
Is there a way I can mask the Wordpress URL to always look like www.domain.com? (i.e. although it is accessing blog.domain.com, can I rewrite the URL to read www.domain.com)
Can I force a 404 at www.domain.com to redirect to blog.domain.com and then if not found show 404 page? (i.e. Check www.domain.com first, if not found then check blog.domain.com and then if not foun, throw the 404 page in the blog)
Thanks in advance
Related
I have site in Mvc and i want that any URL with error code 404 will redirect to 301.
Where i can do this permanently(Web.Config/IIS) and how?
Please suggest me the option keeping in mind the SEO part of a site.
I have hundreds of Urls generating 404 and 500 errors i want to redirect them to site base url "www.site.com"
I have error links like this:
www.site.com/index.php?page=item&id=39
www.site.com/Ad/Detail/b7bd026f-3ba2-444f-8786-6e551d6e1668
Given I use an CMS which makes an article available unter the following URL: http://example.com/article/1-my-first-and-famous-article/
Internally I can identify the requested article unequivocally by its id (1).
How should I handle requests to a wrong (typing error, manipulation, ..) URL? For example someone requests http://example.com/article/1-my-firsz-and-famous-article/ or http://example.com/article/1-this-article-is-stupid-idiot/ - should I respond with http status code 301 and redirect to the right URL or with 404 and show a not found page (maybe with redirection after a few seconds). Which is the preferable way in terms of search engine optimization?
Wrong URLs will be 404 error and any existing page moved to new location will be 301 redirect
How can i change my SEO result URL to my new Urls? I am using IIS 7. Is there any configuration to rewrite URLs?
Thanks.
It's not exactly clear how your scenario looks like but my best guess is that you want to rewrite URLs like http://example.com/article?id=123&title=foo to sth. more SEO friendly like http://example.com/article/123/foo with a HTTP response status code 301 Moved Permanently.
Have a look at URL Rewrite for IIS and this blog post for details:
Introduction to URL Rewriting using IIS URL Rewrite Module and Regular Expressions
I am moving an old site to a Joomla site and when I redid the site, the page URL's changed.
Old URL:
http://www.wengerswanderers.com/bransontour.html
New URL:
http://www.wengerswanderers.com/branson-tour
Is there a way that the old URL (www.wengerswanderers.com/bransontour.html) be redirected to the new URL (www.wengerswanderers.com/branson-tour) so they will not lose their rankings in the search engines?
You could use .htaccess:
RewriteEngine On
RewriteRule ^bransontour.html http://www.wengerswanderers.com/branson-tour [R=301]
Have a look here for Redirect 301 meaning.
Although, it seems that some PR loss is still inevitable with Redirect 301, too. But I don't think there's a best solution.
Use com_redirect.
You can go in and manually enter the from and to for as many urls as you want to forward.
I created a rails app for my client. It was PHP and I totally rebuild it from the scratch with rails. The problem is that the site is old and many old pages are ranked in google. Naturally many people will click the page link in google and the page won't be available.
How do you usually handle such a problem?
I need to redirect such requests (missing old pages) to the main front page of the new app(rails). How can I do that?
Thanks.
Sam
A 301 redirect is meant to be the most efficient and Google friendly way and should preserve your search page ranking.
That said, I haven't tried it in real-life as the next release of my application will be using this approach to restructure a web site.
You might google ".htaccess", apache and "permanent redirect".
Redirecting the user to the front-page would be kind of disorienting without a note (flash[:notice]) to let him know what went wrong.
I think it would be better to write some routes in config/routes.rb to handle the old pages and return the new versions of the pages (if they still exist) else fallback to a 404 page.
If you have been able to maintain the URLs in the new application(eg /members.php is now /members), you can do the following if you use apache:
RewriteRule ^(.*).php $1 [R=301,L]
This will remove the php extension and do a 301 redirect, and should transfer the pagerank to the new page.
If this is not possible and you must redirect to the new main page this MIGHT work, I have not tried it myself:
RewriteRule ^(.*).php http://www.example.com/ [R=301,L]