{{tag>joomla sef seo rewrite htaccess guide}} {{howhard>1}} ====== Joomla Enable SEF ====== To enable SEO for your Joomla site: * Login to administration (i.e. https://domain.tld/administration) * In the top left click on System and then Global Configuration {{ :joomla:system-menu.png?nolink& |}} * In the SEO Settings section enable "Search Engine Friendly URLs" & "Use URL Rewriting" {{ :joomla:sef.png?nolink |}} * Enabling "Adds Suffix to URL" will add .html to most pages (this will depend on the MIME type), for example https://domain.tld/index.html or https://domain.tld/index.php (Not Recomended) * Enabling "Unicode Aliases" will use the exact text in the alias of each object instead of using transliteration for non ANSI aliases. (Not Recomended) ===== Create .htaccess ===== You will need to create or modify .htaccess in your plan. ==== Command Line ==== After you login: cd public_html touch .htaccess cat htaccess.txt >> .htaccess Please note that this will just append the contents of the default Joomla htaccess.txt to the current .htaccess if it exists or create a new one if it does not exist ==== cPanel ==== * Go to the File Manager {{:joomla:cpanel-fm-icon.png?200|}} * Go to the public_html directory * From the top right click on Settings {{:joomla:cpanel-fm-settings.png?400|}} * On the Pop Up make sure the option **Show Hidden Files (dotfiles)** is Selected {{:joomla:cpanel-fm-settings-popup.png?200|}} * Open the htaccess.txt file (Right Click -> Edit -> Edit) and select its contents CTRL+'A' and copy them CTRL+'C' {{:joomla:cpanel-fm-htaccess-txt.png?200|}} * Close the Editor from the top Right button (Close) {{:joomla:cpanel-fm-close.png?400|}} * Open the .htaccess file and paste the contents you copied in the end of the content in the file CTRL+V {{:joomla:cpanel-fm-dot-htaccess.png?200|}} * Click on Save Changes on the top right {{:joomla:cpanel-fm-close.png?400|}} This is the default htaccess for Joomla 3+ {{ :joomla:htaccess.txt |}} if you need it.