301 Redirect For SSL URL - redirect

301 redirect has me completely lost and confused so I would really appreciate if someone can help me with the code.
My website is www.dfwpcrepairs.com I recently purchased the SSL for my site and changed the site from plain HTML site to Wordpress. I kept all the URLs structures the same as they were before and used a plugin to keep the .html extensions in Wordpress for every URL/page on my site.
So Google Analytic tells me that I have a redundant URLs which I assume it is the non www and the www version of my site.
I want to redirect everything to the www/SSL version of my site/URL. Can someone please help me with the code for this?
I would greatly appreciate this.
Regards,
Rnaderpo

I would recommend you use a plugin for this instead of hacking into .htaccess file.
I personally use WordPress HTTPS (SSL) you can use any other you like.

Related

How must the redirect be created correctly in Magento?

Hello dear stackoverflow community,
I am looking for a 301 redirect for the .htaccess.
The following should be done by the redirect.
"example.com/be/nl" to "example.com/be_nl/"
and other URL's are in the old store:
"example.com/be/nl/XXXXX" is there a possibility to remove everything after /be/nl automatically?
Thanks for your help!
https://httpd.apache.org/docs/2.4/rewrite/remapping.html

Redirect a domain from Joomla 1.5.11 to Wordpress on different domain

I have a question, I built a website for a client with a new domain (www.domain1.com) and new hosting. They have an old website with a different domain (www.domain2.com). The client requests that if someone clicks on www.domain2.com, that would take them to www.domain1.com. I built the website using WordPress, and the old website is built using Joomla 1.5.11 which doesn't have the option to use redirect under the Components option. I don't have any experience in Joomla 1.5.11 which is pretty old. Thanks in advance for looking into this for me.
Do you mean you want the domain to be redirected?
You can set up a 301 permanent wildcard redirect on your domain2.com to point to domain1.com.
Setting this up will also depend on the type of host you're using.
Also, you can set up an index.php file at the root of domain2.com to redirect:
<?php
header("Location: domain1.com");
?>
The problem with the above script is that you won't be able to do a wildcard redirect! But it can work with any Joomla! link, as Joomla's entrypoint is always set to index.php.
If none of the above is feasible for you, try adding more details about what you actually want to do.

Redirecting old joomla 1.5 no SEF urls to new 2.5 SEF url before index.php strip

Im working in a new 2.5 joomla site and the old site was 1.5, the urls from the old site are no SEF. I need to redirect the old 1.5 no SEF urls to the new SEF urls, im doing this:
redirect 301 /index.php?option=com_k2&v... http://www.newsite.com/es
(Note the language in the url, its seem to be important for the problem, im using the joomla integrated language system)
But its not working, somehow joomla strips the index.php and the redirect doesnt work. I try to strip the index.php from the redirect, buts its doesnt work either. Im a noob in htaccess and redirects and im stuck in this... Thank you.
Well, like this seems to be a hard problem, i think i just found a solution doing extensives testing and googling...
I found a rewrite and put it before the joomla rewrites:
RewriteCond %{QUERY_STRING} ^(.*)lang=es$
RewriteRule ^(index\.php)?$ /es? [R=301,L]
This replace the normal redirect 301.
Its hard for me to explain because i dont have too much knowledge about redirections and htaccess, the important think is that it seems to work for my problem, i hope other people just found this helpful.
If someone can explain the sintaxis of this code it will be grate.
Thank you very much.
The best thing to do is perform a complete redirect (without the query parameter i.e Redirect 301 / http://newsite.com/) and handle the query term on your new site with an SH404sef extension. http://extensions.joomla.org/extensions/site-management/sef/10134

My site auto redirect to unwanted site in mobile

I use JA_Rasite template for my site:www.nll.com.vn. But now when I visit my site on mobie it auto redirect to random(unwanted) site. Sometime it is porn site, sometime is adverting site. Anyone have a solution to fix this problems?
If you're sure that it depends on the template you are using, most probably it's got hacked and the first thing to do is to reinstall the original JA_Rasite template package.
Of course you'd better check and secure your site to prevent further attacks.

Can RSS readers follow redirects if the url of the feed changes?

We are migrating to a Sharepoint solution and our urls are changing slightly.
Are most RSS readers able to follow redirect links without breaking the feed and making an update manually?
Most of the documentation I'm reading says that this will work for major RSS readers.
I have read in some places that a lot of RSS readers will treat a 301 as a temporary redirect and not update its stored url. Any truth to this?
Assuming you are using a 301 redirect, I would say yes, since any reader worth its salt is built on a compliant HTTP library which will honor the 301 status code and follow the redirect.
Of course, it's not that hard to test with the reader of your choice.
Pretty much every RSS reader - major or minor - will update the feed URL when it encounters a 301 redirect.
In my (limited) experience, most applications will ignore the "permanent" part of a permanent redirect and execute the same logic they would use for a temporary redirect.
It may be necessary to make its site velindekserede about. What to do so to preserve PageRank, link popularity and traffic?
As I understand it, so the solution is called a 301 redirect. It tells search engines that the URL has been permanently moved. How a redirect should be done in a special way. At this link there are different options depending on what kind of server technology you use:
http://www.webconfs.com/how-to-redirect-a-webpage.php
I just tried it in practice. I use PHP itself on all my sites, so I used the PHP instructions:
I ripped all my old page for tags and content and put the small code snippet on the page. Prisoners of the new URL for the page, and saved it. Tested the page by typing the old URL and then redirects worked. To be absolutely sure that redirects are search engine friendly, I used this "Search Engine Friendly Redirect Checker":
http://www.webconfs.com/redirect-check.php
There no disagreement about how well the 301-redirect is working and whether it can transfer an entire site to a new domain (http://www.webmasterworld.com/link_deve ... 135964.htm), but people's experience says that it is good enough. You just make sure that the new URL has the content as the old page had