Call Us: 512.271.5221

Probably the thing I HATE the most in web design is the dreaded .htaccess.  As I find solutions to various problems, I plan on posting them in blogs to help others, and as a reference for when I forget!

29
July
2017

All the Joomla htaccess redirects you will ever need

All the Joomla htaccess redirects you will ever need

Here are the quick code snippets for common tasks you need to do in .htaccess to do redirects for Joomla, or any site for that matter.  Most are linked to its own blog post that explains it in more detail.

 

In all reality, I am sure this post is missing several ones that would be helpful.  If it isn't listed, please comment on post and let me know which others should be on the list.

Categories: .htaccess

12
June
2017

Remove index.php from Joomla SEF Links

Remove index.php from Joomla SEF Links

sef.pngThere are probably a hundred articles that tell you how to change your Joomla settings to remove the /index.php/ from your links, but not a place to show you how to properly redirect existing indexed URLs to the new variant.  Add the below code to your .htaccess file.  If you already turned on the "Use URL Rewriting" feature, then it is already in your root folder of your Joomla website.

 

RewriteEngine On

RewriteCond %{REQUEST_URI} ^/index\.php/

RewriteRule ^index.php/(.*) /$1 [R,L]

Categories: .htaccess, Search Engine Optimization

11
May
2017

Force domain to HTTPS but set subdomain to HTTP

Force domain to HTTPS but set subdomain to HTTP

If you have ever had a SSL certificate for a website but needed to redirect a subdomain so it did not throw a security warning, this is the post for you.  I have had issues with mail.domain.com and other subdomains that were needing to be accessed non-securely, but didn't want visitors to see the warning.  

 

The bottom line is that the web browser throws the security warning before it gets to .htaccess rules.  So don't bother wasting time on this.  I have done this twice now because I forgot that I went through this a year ago.  Hence, writing a short blog post to save others time.

 

The best solution is to just secure the subdomain.  You can do this by upgrading to a wildcard SSL for the domain or just getting a cheap separate one for the subdomain.  You can get free ones through OpenSSL software or "Let's Encrypt" if your hosting offers those tools.  You can also get a basic Comodo for about $10/year on NameCheap.com.  

 

Now if you are not getting the security warning and do want a true redirect ...

Categories: .htaccess

29
July
2016

Fixing open_basedir in Joomla

Many security tools and blogs suggest setting the open_basedir in the php.ini file.  The open_basedir directive "Limits the files that can be accessed by PHP to the specified directory-tree, including the file itself. ... When the file is outside the specified directory-tree, PHP will refuse to access it." *

 

However, it can often trigger the error:

JFolder::create: Path not in open_basedir paths

 

In order to solve this, you have three options:

Categories: Error Fixes, Server Settings, .htaccess, php.ini, Security

07
July
2016

Removing the Temporary Url ~username out of Your Link after Going Live

Ever used a temporary URL with your IP address like http://xxx.xxx.xxx.xxx/~username when building your site but then had the pesky /~username/ stay in the link after going live?  An example would be looking like http://www.mysite.com/~username/contact-us.  Here are some things to check to fix this:

 

1. Hard-coded links

Check your database to see if you put the /~username/ in your actual links. The quickest way if you are comfortable is to go to phpMyAdmin, select your database and use the SEARCH tab.  This is fastest because it checks all tables at once.  If you don't want to touch that, try NoNumbers DB Replacer and check the content table (introtext and fulltext), modules (content), and menu tables (link) for ~username.

 

2. RewriteBase in .htaccess

Check your .htaccess file (via FTP in root folder) to see if you have it has it in the RewriteBase.  It would look something like:

RewriteBase /~username/

Categories: .htaccess

03
July
2016

Change URL from old folder to new folder

This is when you need to change everything (all content) from an old folder to a new one.  This is different than redirecting just the exact match of the folder.  I had to use this when changing a menu alias to something new and fix all the indexed pages with one line instead of a ton of individual redirects.

RedirectMatch 301 ^/folder-old(.*)$ /folder-new$1

Categories: .htaccess

20
May
2016

Redirect Joomla 1.0 SEF links for Joomla 3.x

Redirect Joomla 1.0 SEF links for Joomla 3.x

When you migrate a site from Joomla 1.0 or Joomla 1.5 you may have hundreds of pages indexed with Google that will be broken links, showing a 404 Page Not Found error.  For SEO, you want to redirect those pages since of having Google remove from the index with your robots.txt.  Here is a redirect to catch all of them.

 

 

Categories: .htaccess

05
February
2014

Fixing Magic Quotes for Joomla 3.x

Fixing Magic Quotes for Joomla 3.x

If you have ever installed a new Joomla 3.x website or moved a Joomla site from one server to another, you may have gotten the error for needing to disable Magic Quotes.  This can seem easier said than done depending on your hosting company.  

We compiled a quick guide for how to figure out whether it's enabled, how to change it, and how to troubleshoot it when that STILL doesn't work.

As a disclaimer, messing with server settings can seriously mess up your website.  If you have that feeling like "hmm, should I be doing this??" then you might want to hire a professional to fix it for you.  If you feel like you just need to know where to go, then read on!

 

 

What is Magic Quotes?

At its most basic level, it is the setting within PHP that allows quotation marks to be allowed or stripped out of a string.

Written by: Alexis Priddy Categories: Server Settings, Hosting, .htaccess, php.ini

14
February
2013

Move website, remove folder name from path

Move website, remove folder name from path

This is how to re-direct existing URLs to the new path after moving the site.

 

SCENARIO: Client has a website in a subfolder on their server such as /folder/ so that the links currently indexed by google might be something like:

  • NON-SEF: http://www.mysite.com/folder/index.php?option=com_content&view=categories&id=3&Itemid=2
  • SEF1: http://www.mysite.com/folder/index.php/about-us
  • SEF2: http://www.mysite.com/folder/about-us.html
  • STRINGS: http://www.mysite.com/folder/?id=104

Written by: Alexis Priddy Categories: .htaccess

certified web designer

Get Started with YellowWebMonkey

Invalid Input

Invalid web address.

Invalid Input

Invalid Input

Joomla Certified Administrator