17
votes
How to remove the 'index.php' from URL's?
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'...
6
votes
Accepted
Use Joomla redirect component to fix broken URLs
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....
5
votes
Accepted
How do I allow direct access to my custom .php file in a Joomla Module to be consumed from AJAX?
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, ...
5
votes
Accepted
Shows blank page when creating new article or new category
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, ...
5
votes
Accepted
500 Internal Server Error after renaming htaccess.txt to .htaccess
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 ...
5
votes
Accepted
How can I redirect old domain to a new domain?
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 ...
4
votes
How to remove the 'index.php' from URL's?
Changed htaccess.txt to .htaccess
Site > Global Configuration : Use URL rewriting (Choose Yes)
SEO Settings Search Engine Friendly URLs(Choose Yes)
4
votes
Accepted
Joomla security - fingerprinting attacks with htaccess
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 ^...
4
votes
How to remove the 'index.php' from URL's?
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")...
4
votes
How do I allow direct access to my custom .php file in a Joomla Module to be consumed from AJAX?
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 ...
4
votes
Accepted
Rename htaccess on Windows
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 ...
4
votes
Rename htaccess on Windows
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 ...
4
votes
Accepted
Joomla remove index.php - redirect to homepage .htaccess
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)|...
4
votes
Accepted
"Perfect" .htaccess for Joomla 2.5
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 ...
4
votes
Administrator page 404 not found
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:...
4
votes
Offering different content to different clients
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
...
4
votes
Accepted
Multilingual Joomla site with multiple domains
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 ...
3
votes
Accepted
Leverage browser caching
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 ...
3
votes
Accepted
Change http to https in source code when using SSL
You definitely want to set up a plugin for this. Basically the goal would be to rewrite any http:// or https:// to just //. As a bonus, we can only do this check inside of tags (so it doesn't affect ...
3
votes
How to remove index.php from url in multilanguage site
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 ...
3
votes
Accepted
Joomla 3.x and .htaccess
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.%{...
3
votes
I'm using sh404SEF on HostGator. What should I do with my .htaccess?
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 ...
3
votes
Accepted
Spammy Referral Traffic on Joomla site
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, ...
3
votes
Spammy Referral Traffic on Joomla site
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 ...
3
votes
"Perfect" .htaccess for Joomla 2.5
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 ...
3
votes
Joomla and PHP versions
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 ...
3
votes
Accepted
Search component pointing to wrong SEF URLs in Joomla 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 ...
3
votes
Use Joomla redirect component to fix broken URLs
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 ...
3
votes
Use Joomla redirect component to fix broken URLs
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
.htaccess-configuration × 102joomla-3.x × 43
redirect × 19
sef × 15
url × 11
server × 11
joomla-2.5 × 9
administrator × 6
seo × 6
apache × 6
php × 5
security × 5
configuration × 5
https × 5
multilingual × 4
plugin × 3
login × 3
global-configuration × 3
ssl × 3
component × 2
templates × 2
joomla-3.3.x × 2
joomla-3.5 × 2
search × 2
error-handling × 2