301 redirects
Hi guys
It is not specific to Dreamweaver but I use CS6 and so thought this would be the place to ask.
Im trying to create a .htaccess file with a 301 redirect for my domain name, I found a code but I'm not sure if its right. Can anyone confirm this and if not correct, then what is the best way to present it, trying to get my www.fastlink.co.uk to redirect to fastlink.co.uk
# Redirect non - www URL Www
RewriteEngine on
%{HTTP_HOST} ^www\.fastlink\.co.uk [NC] RewriteCond
RewriteRule (. *) http://FastLink.co.UK/$ 1 [R = 301, L]
Thanks in advance
This works and can be used for any site.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L]
Tags: Dreamweaver
Similar Questions
-
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.
-
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.
-
Can Howe I create a .aspx page 301 redirect
Hello
I launched a new site in British Colombia.
The web page on the old site all have an .aspx extension.
For example, Sunsweet Prunes in California, Sunsweet prune juice
The redirect to URL in British Colombia option does not support this type of extension.
There must be a work around? Any suggestions?
Thank you
Cormac
There is no work around: characters not supported in a 301 redirect "" field
The best approximation is to have a code on error 404 page that can detect and take action based on the current URL. (The content of the 404 error page is based on the file
/Layouts/SystemMessages/Error404-AU.html
;) country code can vary.) -
BusinessCatalyst, muse and 301 redirects - help!
I downloaded my site muse to the catalyst for the company, using the hosting service free adobe gives to CC subscribers.
However, in site manager, it only gives me two options (web forms and emails) and no possibility to make URL redirects etc.
Can anyone help? I have urgent need to set up my 301 redirects
Login to the Admin of the Site, click on "Details of my" with mouseover or click on top-right your name on the page.
Do scroll and activate the online edition, and then refresh the browser. You should have all the options in the site manager.
Thank you
Sanjit
-
Characters not supported in a 301 redirect "" field
We try to add 301 redirects the following format:
/cms/Contact-Us~83.aspx
→/contact
to a site that is just taken from another CMS, however there seems to be two issues:
1. the admin page "URL redirect" will not accept ".aspx" suffix to the url 'from '; He complains that the 'Destination' url contains invalid characters
2. the 'cms' file gets removed from the "source" url whenever we go back to change the item.
Have you encountered this before? Have you found a solution?
We would like to get this resolved soon, but we will use manual JavaScript redirect in the meantime.
Hi Robert,.
British Colombia does not and will not support same redirections of file extension. This has always been the case.
Same system URL or reserved URL that can lead to conflicts with the functionality of the system not accepted as well.
-
404, htaccess and 301 redirect
I have a muse site hosted on windows azure.
I created a .htaccess file and added o the root.
Web page isn't always redirect to the page of 404 error or my 301 redirect I put
htaccess works on Apache servers, not on Windows Azure. I think you need to read the documentation of Windows Azure that would do what you want.
-
Hello
I create a 301 redirect so that I can send my old pages to a new set of pages, but I don't have access to a file .htaccess with my current host, but I do with the news that will be the location of the new Web site with the transferred domain name, now I can put the 301 redirection info in a .htaccess file in the root folder of the new site?
Well using the file .htaccess on your old server would be the best, but if you can still edit the files on your old server you can add 301 redirects directly to the file.
-
Impossible to do a 301 redirect. What should I do?
I would like to make a redirect 301 for some 'old' Web pages, but in Site Manager I don see 'Pages' to create a redirect. What I get is "Forms" and "system emails." What should I do?
You didn't really answer my question, sorry.
If it's one of your free creative cloud sites then show pages to go into the settings and enable editing of the page. This is disabled by default to avoid conflicts with the Muse of edition.
If you see no other options in general you can come across on the web or documents, it will be because your site is a map that does not contain these features.
-
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_homeAnd 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");"
?>
-
Hello
Is there a way we can redirect 301 the product page? There are some popular products that we do not have to sell more and instead of just letting 404, it would be better if we could redirect.
Thank you
SM
I found the solution through the Url redirects.
Thank you
-
Hi all
I have three domains, trojans.co.uk, trojansdesign.com and trojansdesign.co.uk.
I decided that I would just use the last of them and have downloaded a .htaccess file with following elements.
Redirect 301 / http://www.trojansdesign.co.UK/
Of 404 error.html
However it does not seem be redirected correctly although the website's address is not fair.
Also do not know if my catalyst for business areas are properly defined which are currently:
"! important; border: 0px #f2f2f2; padding: 4px 7px 3px;" >Changewww.trojansdesign.com United Kingdom English (United States) External Change Delete www.trojansdesign.co.UK (Default) United Kingdom English (United States) External Change Delete www.Trojans.co.UK United Kingdom English (United States) External Change Delete trojansdesign.worldsecuresystems.com (secure) United Kingdom English (United States) This Service trojansdesign.com Forward to-www.trojansdesign.co.uk External Change Delete trojansdesign.co.UK Forward to-trojansdesign.businesscatalyst.com External Change Delete trojansdesign. BusinessCatalyst.com (System) United Kingdom English (United States) This Service Change Trojans.co.UK Forward to-www.trojansdesign.co.uk External Change Delete Any suggestions?
Thank you
Hello
Please contact us.
.htaccess file would not work with the system of catalyst for business that this file is designed for use with the Apache servers and Business Catalyst uses .NET
Now when I check all the fields you added, it is clear that you use external DNS services and also for the trojans.co.uk and trojansdesign.com areas, the a record is also not done for us.
If I understand correctly, you want all three areas (weather used with www or without www), must be sent to www.trojansdesign.co.uk.
To do this, you need to create a breakthrough on the end of your DNS service provider (from where you bought the domain).
The installation program, you need to create at the end of your domain provider is:
Trojans.co.UK passes to the www.trojansdesign.co.uk
www.Trojans.co.UK passes to the www.trojansdesign.co.uk
trojansdesign.com passes to the www.trojansdesign.co.uk
www.trojansdesign.com passes to the www.trojansdesign.co.uk
In addition, Business Catalyst has its own error page 404 you can find in the Site Manager > System Pages that you can design according to your requirement.
Please let us know if you have any additional questions.
Kind regards
Sachin
-
How to do a 301 redirect in Adobe Muse?
Nice day
I use Adobe Muse to the website of our company. I get a notification of redundant names on my Google Analytics. How can I solve this problem in Adobe Muse? What are the steps to follow?
Thank you
Hi janv59073762,
See the solution in the redirection in Adobe Muse Page
Thank you
Preran
-
301 redirects of wordpress in British Colombia
I'm having a problem forwarding URL Wordpress customers who have a / at the end of the URL, i.e. www.examplesite.com/this-is-an-example/
in the BC system, they don't recognize the forward slash to redirect the above to www.examplesite.com/this-is-an-example without the trailing slash... Could someone explain if Google Webmaster it will recognize as they throw me errors of redirects with the slash, but not without? Thank you
Not ideal, but how Wordpress which is strange anyway.
Not sure how you would do an example.
Make a folder and put an index.html in it. Look at how it behaves in British Colombia, which should help you understand. Look at the url, delete the url index.html file, remove the last / of him.
Maybe you are looking for
-
I leave the public beta without restoring?
I had no problem with version beta, so I do not need to downgrade my phone. I wonder if I can just unregister then wait for the next general release with a higher than the build that I'm on. Say so let the public beta, once the official iOS 10.0 is r
-
The norton toolbar feature that identifies problem sites(web safe) is a good tool and has saved us many problems.Experience, I think it's something I have to have. I loaded firefox 4 and although I like the program I took itthe lack of this feature b
-
How to sit interface with matlab 2010A and labview 2010
I use tools of simulation interface 5.0 with matlab 2010A and labview 2010, I want to take my cue from matlab, labview but signal transfer, I am facing a problem. I want to know is there any compatibility issue in sit 5.0 or I do something wrong?phot
-
Suddenly my laptop screen is sideways, how can I get that back to normal to research?
-
422 reason: error message
I work from home and to connect to a Cisco router in the office. I keep getting disconnected (422 reason: lost contact with the security gateway.) Check your network connection). Anyone know how to solve this problem. I work in the platform of Micros