17

You can do that by enabling the SEF URLs and especially the parameter "Use URL rewriting" in the Joomla global configuration. Please note that this will generate an internal server error if you didn't create the .htaccess file before enabling the option. There is a doc page explaining what steps are needed to get those nice URLs. Have a look here: http://...


6

With the below .htaccess rule you can redirect all pages from a url with the pattern of: https://www.portal-gestao.com/whatever/whatever/9999-title-of-the-page to a new url of : https://www.portal-gestao.com/item/9999-title-of-the-page htaccess: RewriteEngine On RewriteCond %{HTTP_HOST} ^www.portal-gestao.com RewriteRule ^.*/.*/(.*)$ https://www....


5

Typically the only thing preventing direct access to a joomla file is a line at the top of the file: defined('_JEXEC') or die('Restricted access'); If that is not already at the top of the file, then you should have no trouble just accessing the file directly. The htaccess file redirect already has conditions to not redirect if the file or folder exists: ...


5

I would say it is probably a system plugin, so you have nonumber installed? Reinstall it if you do. What version of Joomla is it? Try to update it if it is not at least close to the latest version, many extensions assume you have the latest version of whatever branch you are using (as in 2.5 or 3.x). If you update within your branch it usually does not cause ...


5

There are various techniques you can do to redirect an old domain to a new one and many depend on your server and site configuration. If you are hosting on Apache server, then one of the most common is to redirect all pages urls of the old domain to the corresponding pages of the new domain - using Apache's mod_rewrite - assuming you have kept the same ...


4

Changed htaccess.txt to .htaccess Site > Global Configuration : Use URL rewriting (Choose Yes) SEO Settings Search Engine Friendly URLs(Choose Yes)


4

First of all, I'm by no means an expert in .htaccess usage. The code you've posted will not allow anyone to hotlink your content, the only exception being defined in the following line: RewriteRule ^images/stories/([^/]+/)*([^/.]+\.)+(jp(e?g|2)?|png|gif|bmp|css|js|swf|ico)$ - [L] The line RewriteCond %{HTTP_REFERER} !^https?://(www\.)?example\.com [NC] ...


4

You could add this code to the top of Joomla's index.php: if(strcmp($_SERVER['REQUEST_URI'], '/index.php') == 0 && $_SERVER['QUERY_STRING'] == ''){ header("HTTP/1.1 301 Moved Permanently"); header('Location: /'); exit; } Be careful though, if you take this approach, you'll need to redo this when you upgrade.


4

Good answer provided by @Johanpw. Personally, what I always do is open the htaccess.txt file in a text editor. For me, I tend to use Notepad++ for simplicity. Once done, simply go to File >> Save As (CTRL + ALT + S) and name the file .htaccess. Job done


4

You can try something like below: # Redirect index.php to Root RewriteCond %{THE_REQUEST} !^POST RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteCond %{SERVER_PORT}>s ^(443>(s)|[0-9]+>s)$ RewriteRule ^index\.php$ http%2://yoursite.com/ [R=301,L] Update: Try with the below content for the .htaccess file. It contains also a few ...


4

An alternate solution , If you are developed the module in proper Joomla structure then instead of including Core Joomla framework to module file you can use com_ajax for making ajax call to module or plugin. If you're working with Web services and plan to use it in many sites so simple creates a Joomla module/Plugin and that can be acceed via ajax and ...


4

Just some additional information on this error, copied right out of the default htaccess.txt file that comes with Joomla: # The line just below this section: 'Options +FollowSymLinks' may cause problems # with some server configurations. It is required for use of mod_rewrite, but may already # be set by your server administrator in a way that dissallows ...


4

There is no such thing as "Perfect .htcaccess". Each site and environment are different and have diverse needs. Having one htaccess that works for one site on one specific hosting, doesn't mean that it will work the same way on other sites on the same hosting, or on the same site on another hosting. Lodder is right, that you should know what you are doing ...


4

I have achieve great result usging the nonumbers extensions like advanced module manager and advanced template manager. Links: https://www.nonumber.nl/extensions/advancedmodulemanager#free-vs-pro https://www.nonumber.nl/extensions/advancedtemplatemanager#free-vs-pro These two extensions extend the possibilities to assgin templates and modules on a number ...


4

There is a nice free plugin Language Domains from Yireo, which allows you to switch the domain-name as soon as a specific language is selected. Each domain is bound to a language, by configuring the plugin parameters. Once enabled, the plugin detects the current domain name, checks the current language, and redirects to a new domain if needed. You ...


3

In Windows Explorer, the path of least resistance is to select the file then press F2 to rename it (or right-click and choose Rename), then rename to: .htaccess. Notice the trailing dot (.), make sure you add that too. Hit enter and confirm that you want to rename the file and voila: (I have a monkey head icon because I've got Helicon Tech's APE installed....


3

First take the backup of your current htaccess file and then try this :- List item #### Begin - ETag Optimization This rule will create an ETag for files based only on the modification timestamp and their size. Note: It may cause problems on your server and you may need to remove it FileETag MTime Size AddOutputFilterByType is now deprecated by ...


3

Firstly, in the Global Configuration, set Use URL rewriting to Yes. This is the option to remove the index.php from the URL. Once done, simply rename your htaccess file to .htaccess, which you appear to have already done. This will allows the first change mentioned above to be performed.


3

I suggest using universal code, no need to retype domain everytime you want to apply the same thing on other domains. RewriteEngine on RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]


3

1) Not really. 2) From a configuration perspective you don't need to change anything in the .htaccess file for proper and optimal functionality of sh404sef. From an "SEO" perspective, there are some things I would recommend. Mainly ensure that you are properly redirecting non www to www (or vise versa) using this: https://stackoverflow.com/questions/...


3

Oops. Originally linked to the correct page of documentation, but copied the wrong example... EDITING: Copied (had to edit some) from http://httpd.apache.org/docs/current/rewrite/access.html Also, if RewriteMap is not supported you can chain RewriteCond %{HTTP_REFERER} domain.net [OR] RewriteCond %{HTTP_REFERER} last-domain.net [NC] RewriteRule ^ - [...


3

First thing is that resellerclub scam is not any visitor, but just a part of ilovevitaly.com which is affecting millions of Websites. They do not visit your Website, they just appears in your google analytics and badly affects your rankings and SEOs. It is trying to misguide you that it is recommended from google, so please be aware of these type of spam ...


3

In addition to @FFrewin's answer (I would also recommend @nikosdion's Master htaccess), you should explore the options in the html5boilerplate htaccess which provides many options for improving security and performance: https://github.com/h5bp/html5-boilerplate/blob/master/dist/.htaccess As previously noted by @FFrewin though you can't simply drop all of ...


3

Using FastCGI: in apache configuration: FastCgiServer /var/www/cgi-bin/php-cgi-5.3.0 FastCgiServer /var/www/cgi-bin/php-cgi-5.4.0 FastCgiServer /var/www/cgi-bin/php-cgi-5.5.0 Create php-cgi-* files for each version in /var/www/cgi-bin/ e.g /var/www/cgi-bin/php-cgi-5.3.0 which should point to right php #!/bin/sh PHPRC="/etc/php5/cgi/5.3.0/" exec /path/to/...


3

The best practice to avoid any unpredictable urls is to create "Articles - Category List" or "Articles - Category Blog" menu items for all your top level article categories. This way all your articles will inherit the url structure from these menu aliases. Go to Menus->Add New Menu Create a Menus say "Articles" Go to that Menus Add the menu item for each ...


3

If your admin area works widthout .htaccess its possible your joomla config has rewrite option enable. You can try edit your configuration.php file and change the status directly in configuration file: $sef_rewrite = '0'; $sef = '0'; $sef_suffix = '0';


3

What you could do is use Joomla's Redirect Manager to redirect the old URL to the new one. In the Joomla backend, go to: Components >> Redirect >> New In the Source URL field, enter the old URL and in the Destination URL field, enter the new URL


3

You can use JOOMSEF component, which is for SEO purpose and more of this extension is free. Also in that component you have option to remove category and menu names from url and also you can customize the url according to you.


3

I got a similar issue. Maybe my solution will help you. I was not able to edit a second time my article and I was also receiving this message : You are not permitted to use that link to directly access that page (#article-id). The error was not appearing when my browser extension « Cache Killer » was activated and the same thing was going on with the mode ...


Only top voted, non community-wiki answers of a minimum length are eligible