301 Permanent redirects

I did some reading in the permanent redirects and have a few questions I've ever had to do so far.

I redesigned a customer site where structures have changed, and it has also changed from a windows server that serves html on a linux server served the PHP, the new server is not associated with the old pages that no longer exist.

So is the fact that the server has changed a problem? Some pages are named the same, others became redundant as well, no matter what, they changed file with the suffix suffixes .php .html. That this has an impact on permanent redirects?

In addition, what I do in what concerns the redirects? I put the original file on the server with redirection in code, or can I actually connect to the host administration area and their implementation from there?

Thank you.

Carpet

With this code in your htaccess file:

Options + FollowSymlinks
RewriteEngine on
RewriteRule ^ (.+)\.htm$ $1.php http://example.com/ [R, NC])

all requests for htm pages will be redirected to their companions .php. (Of course change "example.com" with your domain name.)

This means that there is no need to have pages on the server at all .htm, they weill never been accessible through a browser or a spider.

It is also irrelevant that you have changed hosts/servers.  All requests for .htm or .php, pags to come on the new server files.

Hope that helps.

--

E. Michael Brandt

www.divahtml.comwww.divahtml.com/products/scripts_dreamweaver_extensions.phpStandards-compliant scripts and Dreamweaver Extensions

www.valleywebdesigns.com/vwd_Vdw.aspJustSo PictureWindowJustSo PhotoAlbum, et alia

--

Tags: Dreamweaver

Similar Questions

  • redirection of RSS feeds

    I recently changed my podcast host and submitted new my rss new podcast feed and actually worked a way to get my old Web host to redirect my subscribers! But when I submitting me the food must be approved by itunes, I had to change slightly the name of my podcast to itunes it recognized as a new podcast. It was approved and it is up and running, but now I have two the same Active podcast on itunes. Can I delete the other or do I when even it activates for redirection? and if I can delete it how can I do to turn off?

    Thank you

    You didn't need to present the new URL as a new podcast, you could have arranged for the store to change by using the new URL of feed.  If you have set up a redirect 301 on the origin server, then your followers will be redirected to the new stream when they then check it. In theory, they should stay redirected but if they clear the caches on their computer, it can come back, and if you have removed the old feed then they will lose contact. It is not entirely clear whether the store itself will redirect, although I guess there. As you have now completed your best method probably to do the following:

    You can get the old podcast removed from the Bank, but leave the original stream in place. Go to Podcasts Connect then - Apple help page:

    To remove your podcast:

    1. Click on my Podcasts.
    2. Click on the podcast you want to display. Podcasts Connect displays the details page of the podcast.
    3. Click on delete Podcast.Podcasts connect immediately removes the podcast of the dashboard. Allows up to 24 hours for the change appears on the iTunes Store.

    What you should do then is leave feeds in place for a few weeks, or so the old man, but adds the ' itunes: new-feed-url' tag in the novel food, as described in this page:

    http://Wilmut.UK/move

    This will ensure that when subscribers are redirected to the new stream it immediately becomes a permanent redirect no matter what happens to the old food.

  • Put in redirects after the redesign of the site

    Pretty sure it's easy for someone to answer for me:

    I used Dreamweaver to create a new Web site, which will replace an older version of 'keeping' made with iWeb. The new site will have the same web address for the home page, but after starting a novice on iWeb, I see now that the old site page names are not relevant and cannot be transferred to the new site (the new site is restructured and with more content). While it was only a small site and relatively new, I want to assure you that if someone has bookmarked the old pages, they are sent to the corresponding part of the new site.

    So my question is what is the best practice to redirect from somewhere that will not be there...?

    Thank you, Matt.

    > So my question is what is the best practice to redirect to somewhere
    > who will not be there...?

    Your accommodation has a CPanel / Control Panel?
    Go inside and find a place to create 301 redirects.

    When it's done the Server intercepts requests to the old page, refers
    a 301 permanently moved to header and then put the new page. Which allows to
    search engines don't know the status of moved and the new address of the page.

    Check your hosting of pages of help/faq or google.
    http://www.Google.com/search?hl=en&ie=ISO-8859-1&NewWindow=1&safe=off&c2coff
    = 1 & q = how + to + 301 + redirect

    --
    Alan
    Adobe Community Expert, dreamweaver

    http://www.Adobe.com/communities/experts/

  • Redirects the URL for paths ending in ' / '.

    Hi all!

    I have a site that's been replicated in British Colombia, which is former location links are indexed in Google with URLS ending with a ' / '.
    for example ' / on / ' and ' / services / '.

    Under the section of redirects of Pages; I tried to adjust page source as ' / on / "with a redirect to" / about.htm "but accessing to http://www.domain.com/about/ returns a"404 page not found".

    I also tried to change the URL of the on the page is ' / on / ', which led to a 404 error too.

    I have added a few custom JS to my page 404 system to manage these and redirect the visitor, but y at - it another way?

    Can I create a folder called 'about' and place in it a default document as "default.htm" and all it's a permanent redirect to the right page?

    So that browsing to " " http://www.domain.com/about/ "would return the default file in the folder"about". "

    Concerning

    Mike

    Hi Mike,.

    Whenever you have a url which is /something/ it is a folder.

    To post a link to the page you have index.html in this folder.

    So /something/index.html is the same as /something/

  • Problem: 2 different URLS for the same home page

    Hello

    I'm having a problem with the canonization, where my homepage has two different URLS.  From my understanding, it's diluting my SEO efforts.  I read that the right way to fix is to do a 301 redirect, however I do not know how to do this.

    Examples:

    Addresses of Web sites:

    http://www.liveimagegreenscreen.com/index.html

    http://www.liveimagegreenscreen.com/

    Article canonization:

    http://www.SEOmoz.org/learn-SEO/canonicalization

    Hi pharcydeabc,

    Thank you for your patience. If you're hosting with a third party, you'll need to create or change the code in the .htaccess file that is located on your web hosting server. It is beyond the scope of Muse. However, here is some information on how to create a 301 redirect:

    http://www.beyondink.com/HOWTOs/301-redirect.php

    http://www.internetmarketingninjas.com/blog/search-engine-optimization/301-redirects

    This can be a confusing process and, if done correctly, can cause problems with your accommodation. I recommend contacting your hosting provider of support and assistance to the creation/modification of your .htaccess file.

    If your site is hosted by Business Catalyst, here are the instructions of the Colombia-British team on how to set permanent redirects in the administration of BC:

    http://helpx.Adobe.com/business-catalyst/partner/redirect-page-URLs.html

    Best regards

    Corey

    Post edited by: Corey@Adobe (added link to BC)

  • Safari bug/adware/malware won't go even after full restore

    Hello

    I can't get rid of a bug that continues to make windows pop up or forcing me on stupid 'you have won a prize' sites, even after having repeatedly a clean full restore (no backup) of the iPhone. I thought he might come back through the data of Safari in iCloud, but it happens even when I don't sign in iCloud in the newly restored phone.

    After that I restored the iPhone happens almost immediately when I open Safari and go to a website, and I'm not on first order as bbc.co.uk sites. The following pop ups and websites keep appearing:

    Here are two examples, but others arrive. I am on iOS later and have deleted all the data browser Safari etc.

    Really can't believe it happens immediately after a completely fresh restoration... it seems that the bug is in the iOS data!

    Thank you very much

    Daniel

    Go to settings > Safari > clear the history and data from the Web site. After doing this, you can still open Safari and go about your normal browsing.

    I noticed that the two examples you listed seem to be linked to Facebook. I have my own personal struggle with what I now called bad links in my Facebook News feed. Clickbait sites that you get tire to begin plaguing your screen with ads and even permanently redirect you to another site like the one you see here. It is an annoyance, but is not one that is clean in iOS. You can have all the pleasure of dealing with similar experiences click on bad links on your computer as well.  It's a question on the web.

  • Planning the User Login screen

    Hi all

    I have a customer request to perform after the task

    If a user connects and opens the report X and the user is working on this form and then disconnects and newspapers in later app then planning is automatically redirect to the previous user of the web form opened.

    So now, my client needs user to be redirected to the default page. How this can be achieved.

    In forums, I saw John suggested to change "MRU_SCREEN_PROPS" to redirect to a time goal, but here I need a permanent solution, I tried following ways

    I've seen pictures where the application is deployed that is the relational database
    Table I referred is HSP_USER_PREFS, I have manually modifed column 'MRU_SCREEN_PROPS' in the login page by default of the planning application, but it more written when disconnects and connects

    So is it any procedure to permanently redirect my users to a single login page.

    Thank you
    RAM.

    Hello

    You can check the below?
    What you defined for the property at the application level in "Current Application Defaults"?

    Administration->-> the current default Application settings-> Application settings display Options

    Is ' Remember last page visited: "value not in"other Options "?

    See you soon
    RS

  • Help in 301 redirection problems

    Hi, I have a single page site that has been created (free Council) with the www.downtoearthlandscaping.caHTML5, CSS and JavaScript. It is Linux hosting with cPanel.

    So you understand what my ultimate goal is... here it is in a nut shell. When you arrive at the url above, there is no pages open as there is a cone of background gallery showing pictures. What I'm trying to do is when you click on this url is, you arrive at this place http://www.downtoearthlandscaping.ca/#! / page_Home.

    The first thing I tried was the godaddy cPannel redirect tool;

    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^ downtoearthlandscaping\.ca$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.downtoearthlandscaping\.ca$
    RewriteRule ^ /? $ 'http\:\/\/www\.downtoearthlandscaping\.ca\/\#\!\/page_Home' [R = 301, L]

    Unfortunately, this is the url that it produces http://www.downtoearthlandscaping.ca/%23! / page_Home and it says "the page is not properly redirect.

    Then, I have done a google search and found this code and went and placed manually in my root directory .htaccess file

    Redirect 301
    /old/index.html
    /new/http://www.downtoearthlandscaping.ca/#!/page_home

    And I also tried;

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^ downtoearthlandscaping.ca [nc]
    RewriteRule ^(.*) $ http:// www.downtoearthlandscaping.ca/#!/page_home $1 [r = 301, nc]

    And then finally I found a .php option (that I have saved in my root directory)

    <?php

    header("HTTP/1.1 301 Moved Permanently");

    header("Location: http://www.downtoearthlandscaping.ca/#!/page_Home");

    ?>

    I have no idea, but I think because my landing page does not end with .html that it does not work.

    Anyone have any ideas on how to work around this problem?

    Sorry for the display of the wire

    OK put the index.html page and all images, css, jQuery, etc in a folder named "site".

    Add "site" in the url in the page index.php:

    <>

    Header ("Location: http://www.downtoearthlandscaping.ca/site/#!") / page_Home");"

    ?>

  • allow the exception of redirect permanently, from the firefox prompt "allow."

    Hi, is it possible to allow (as an exception (permanent) since this notice of redirection by firefox window?

    Workflow

    (1) redirections and pop ups are not allowed by default in my preferences

    2) allow Firefox shows me this option and I click? allow while I'm using this Web site

    (3) However, this site is a new forum I have just joined, so I prefer to be allow to add it as an exception permanently from this place. Please see screenshot.

    (4) rather I go to preferences, security, and add the exception in manually in the pop-up window. I think I did it properly.

    Thank you

    This function is very limited. It was designed as an accessibility feature to avoid any software screen reader to be confused by changes in context. It's terribly incomplete as a tool of security possible, because there are several ways to redirect and the functionality is only about some of them. And of course there is no way to make exceptions based on the site. If all goes well, there is an add-on that does what you need.

  • Form post (GET/POST), redirection 301 response with no redirects.

    A fairly simple shape, with a GET request does not follow the redirect response string:

    See:

    https://www.openrent.co.UK/

    A search for "London": calls

    [16:07:18.622] GET https://www.openrent.co.uk/search/SearchByDistance?searchBox=london & lng = & lat = & within = [HTTP/1.1 302 OK 378ms]
    [16:07:19.030] GET https://www.openrent.co.uk/properties-to-rent?term=london [HTTP/1.1 301 OK 46ms]
    [16:07:19.081] GET https://www.openrent.co.uk/properties-to-rent/london?term=london [0ms]

    But the page does not redirect - this has just stopped working today.

    It turns out that it was a problem with SPDY enabled on the siteand a possible bug in Firefox. It occurs both in Firefox V21 and V22.

  • 301 redirects - how long to keep old site hosting go?

    Hello. We have a company that is about to rebrand itself, so it gets a new website and a new as well domain name, both are sites of Business Catalyst. I did some reading on this and think that I know everything that I have to make about 301 redirects, etc. in order to not lose search ranking. One thing I'm unclear on if, after placing the 301 redirects to direct traffic to the new content to the site, how long the old place accommodation had to be kept going? I read 3 months to a year to keep the 301 redirects in place to ensure indexing.

    I plan to redirect 301 pages from the old site to the new site and then after 3 months (assuming that any good) drop the former host of site (only for reasons of cost at this point) and add the domain name to the new site and will forward it to the new domain name. Can anyone confirm that this is a healthy approach to please, or let me know of any problems they see in my simple plan.

    Thank you

    Grant

    3 months should be plenty. Make sure you submit the "Change of address" form within the webmaster tools. I think that Katherine Anderson recently made a Sandpile BC on it.

  • redirect 301 for the same domain

    Hello

    This could be an edge case, but basically, I wanted to know if I did the right thing.

    I just upgraded to a basic plan to a marketing plan. The new Web site has different URL addresses and when I went to live any Google search returns when leading to a 404 error page. I don't know how long it takes for Google rescan the site and he classify correctly, but the only solution I could think is the creation of new pages, rename the URL with the URL of the previous Web site and redirecting them to new pages. What is the way to do it? See screenshot.

    Screen Shot 2016-08-01 at 10.56.57 PM.png

    This site is small and it was easy, but what do you do if you have hundreds of pages?

    Thank you

    MIC

    Hi Mic,

    You don't need to do.

    You just need to go to the crib of redirection to URL and follow the instructions and the interface it to identify the old URL and where to 301 redirect there too.

  • redirect 301 - best practices?

    Hello.

    What is the best practice to use with Muse when you do a 301 redirect?

    I got this message when tried to address through the ftp to my hosting company server:

    According to many hosts and Linux distributions, they began tightening of +FollowSymlinks to +SymlinksIfOwnerMatch due to security exploits.

    Have you checked the solution in this post on the forum?

    301 redirect

  • editing the .htaccess file allowed for 301 redirects? (I'm working with https)

    I'm trying to use HTTPS with my sites. Especially brightdentistry.co for the SEO benefits.

    What I understand, it's that I have to set up a 301 redirect in .htaccess file and I need to pass all versions of possible (brightdentistry.co or www.brightdentistry.co etc...) domain address to https://brightdentistry.co

    How can I work with https correctly?

    Thank you in advance!

    Thanks to J-26, when you use the host of dream and Adobe Muse SSL/Https make a .htaccess file with this code:

    RewriteEngine on

    RewriteCond % {HTTPS}

    RewriteRule (. *) https://%{HTTP_HOST} {REQUEST_URI} %

    Problem solved!

  • 301 redirect with get parameters

    Hello

    My client's old site with the url structure http://site.com/folder/folder?page=1234

    All of these pages should be redirected to the new page in the new Adobe BC site.

    But it seems impossible. Redirection does not work with get parameters and works without it.

    Is there a decision?

    This is because there is only a single page and player parameters things like ajax to load content so 301 redirects do not work.

    You must run the google web master tools and apply the tricks of setting filters.

Maybe you are looking for

  • tx1308nr tablet PC laptop

    Hi guys I bought a computer laptop tx1308nr on ebay. laptop did not come with a battery, so I had to buy it different seller. Anyway, battery worked when the first is about 15 days. I was working on and off battery and I didn't watch the carfuly leve

  • iMac 27 "end 2013 - random stop

    My iMac 27 "end of 2013 - have this problem to stop randomly, as power chord is out... randomly. I only can he start by plugging the power cable and wait for 5 minutes and then restarting it. When I explored the forum it seems the problem until 2010,

  • Activating SharePoint Designer

    I'm new to SharePoint and learn to use SharePoint as an end user. I it running on a VMWare virtual server, Windows 2008, using the Google Chrome browser. I need access to SharePoint Designer to change a column width. I activated by: To access the Sit

  • Hotmail won't let me stay connected.

    I click on the box that says "stay connected". I blocked 3rd party cookies because I was getting some tracking cookies. I sign out when I close the browser . How can I stay signed in Hotmail?

  • I only 'local only' connection, does anyone know a real solution that works?

    Hello My computer is a Dell XPS M1330 on Vista. Recently, I have noticed my wifi says identification or connected only local connection. Because this came I was not able to connect to any wireless network. I tried to connect directly via cable ethern