Questions tagged [.htaccess-configuration]
.htaccess is a configuration file for use on web servers running the Apache Web Server software.
113 questions
1
vote
1
answer
1k
views
How to use images from the domain images folder for all subdomains? [closed]
I have a website with a lot of images and many of them are going to be used by two subdomains. I wanted to avoid uploading the same images twice, so I thought maybe to use the images from the domain....
1
vote
1
answer
5k
views
.htaccess and localhost re-direct issue
I'm quite possibly doing something very silly here however after hours of looking I though I'd ask here as no doubt somebody will spot it!
Local dev environment Win7/XAMPP
I have a number of local ...
1
vote
1
answer
170
views
Rewriting .htaccess into apache config
I have got myself a vserver.
I just thought off rewriting the context of the .htaccess (RewriteRules etc.) into
my /etc/apache2/sites-availabe/domain.conf .
Does this work?
Or does the .htaccess ...
1
vote
2
answers
311
views
Activating sef plugin throws a 404 error
A joomla website is throwing a 404 error, when I try to access it root page /index.php, but when I deactivate the joomla built-in sef plugin,
the website is accessed normally (code 200).
I have tried ...
1
vote
2
answers
705
views
How can I redirect all index.php from URLs to stop duplicate URLs?
My SEO team has reported duplicate URLs. I have turned on SEF URLs and I have renamed htaccess.txt to .htaccess.
This does not show the index.php when I click on the link, but if I manually add it ...
1
vote
1
answer
764
views
Invalid security token locks out users trying to log in through an email link
I ran into the below problem that blocks my users to log into my site:
When the user needs to log in she gets a notification email with a button that links to the below address:
https://www....
1
vote
2
answers
496
views
Redirect problem
Over the last couple of years I have taken over a website made up of several parts, ie there were some traditional html pages, a php “wiki” installation and a similar php “knowledgeable” installation.
...
1
vote
1
answer
3k
views
Joomla htaccess file
I have some old links (old platform) and I want to redirect them to the new ones. I have both old and new links but I can figure it how to modify the .htaccess file. Everything I try causes a 500 ...
1
vote
1
answer
811
views
Rewrite URL In joomla
Is it possible to do the following URL rewrite (not redirect) with htaccess?
mypage.com/en/example/example/index.php to mypage.com/en/example
I have also enabled URL rewriting in Joomla config, ...
1
vote
1
answer
463
views
How to change JoomShopping URLs?
I have added several JoomShopping categories with respective pages. However, they have long URLs:
http://ysadba.kiev.ua/component/jshopping/CATEGORY/PRODUCT.html?Itemid=0
I'd like them to look like ...
1
vote
1
answer
8k
views
No configuration file found and no installation code available. Exiting... | Not true
I'm using ALtervista to host my website.
I've just installed joomla 2.5 using the auto-installation of Altervista.
Exported a database in sql.gz format and imported it into my new database on ...
1
vote
1
answer
903
views
Is the syntax of htaccess.txt same with .htaccess?
The problem starts with my attempt to use CDN77: After installing and setting cdn plugin, all my source files' URL turn to the cdn provider's URL. Everything is working except font awesome icons, ...
1
vote
1
answer
421
views
301 redirect non-www to www in subdirectories
I am in a unique situation where I have multiple instances of Joomla setup under my primary domain in different subdirectories.
For example:
mydomain.com = Joomla instance
mydomain.com/...
1
vote
3
answers
308
views
.htaccess particular query redirect?
I've got a Joomla 2.5 website and a phpbb forum together.
I wanted to redirect the registration of the Joomla Website to the registration to my forum.
My current registration link (in joomla 2.5) is:
...
1
vote
1
answer
5k
views
Joomla 2.5.x 403 Forbidden
I used ARTIO JoomSEF to make a change to my .htaccess file from the admin dashboard. The changes were a few 301 redirects for some old pages I had.
As soon as I saved the changes I was brought to ...
1
vote
2
answers
3k
views
Sample htaccess.txt file for Joomla 3 with GoDaddy
GoDaddy is providing one-click installation for Joomla 2.5. If you want to implement Joomla 3.0 from scratch, FTP is the way. The reason for the same is unclear to me. I guess htaccess.txt is one ...
1
vote
0
answers
84
views
Why is my rewriterule not working in Joomla 4
I am using Joomla 4. I have a requirement to rewrite certain URLs to a specific article (article with ID 32). This worked OK with Joomla 3 but now I am getting unexplained error 404 using the same ....
1
vote
0
answers
150
views
Rewrite rule in htaccess in joomla 4?
In J3 i used specific rewrite rules in .htaccess that worked fine but doesn't seem to work in J4. Here's an example :
RewriteRule ^metier/([a-zA-Z0-9-_]+)\.html$ /index.php?option=com_content&view=...
1
vote
0
answers
40
views
Error 0 after moving Joomla site to subfolder
As told in the title, I just moved my 3.9 Joomla site to a subfolder on my apache server.
Unfortunately when I'm trying to access it, I get this error
"syntax error, unexpected '}', expecting end ...
1
vote
0
answers
80
views
Help: Joomla routing and pass-through redirects
I have a little project integrating a 3rd party application, which seems pretty easy and straight forward for the most part.
However, it requires some internal Routing to be set in place, in order to ...
1
vote
0
answers
43
views
Joomla restricted pages are redirected to 301 Moved Permanently after HTTPS redirection
I have Joomla site with a load balancer (AWS). The website is redirected to https, after redirecting home page works correctly. However, on restricted pages after login are giving the error
301 Moved ...
1
vote
1
answer
328
views
Redirection not work from non www to www(https) You configured HTTP(80) on the standard HTTPS(443) port!
I'm currently have a website which runs under https and work with no issue and I've tried to do something on my .htaccess file so that when I try http://abc.com it will redirect to https://www.abc.com
...
1
vote
0
answers
173
views
Custom htaccess rewrites with PT flags
I'm attempting to add a custom RewriteRule in the default htaccess file in Joomla 3, but not having any luck getting it to work.
The end goal is to create a URL with a wildcard subpage, like site.com/...
1
vote
1
answer
65
views
Media/Template folder fills up with constantly generating css and js files with 8 random characters appended to filenames
One of my site's media/template folder continues to generate new css and js files every few days. Each file is appended with an 8-character string of random alphanumeric characters.
What I expect ...
1
vote
0
answers
331
views
Google Search Console Crawl Anomaly in Joomla 3.x
Check the URL - no errors
https://www.dach-spengler.eu/sitemap.xml
https://www.dach-spengler.eu/robots.txt
In the google search console, I got the error:
Crawl-Anomaly
Submitted Sitemaps
Status ...
1
vote
1
answer
1k
views
Redirect direct registration page access by .htaccess
I would like to redirect registration page to homepage by using .htaccess now my code is redirecting to /component/users/?view=login&Itemid=437 which is login page. I would like to make ...
1
vote
2
answers
608
views
.htacces replace all underscores with hyphens
I am having a struggle trying to get my .htaccess to remove all underscores from an url. I have a lot of old aliases in my articles and they are all with underscores. I have searched for a sollution, ...
1
vote
1
answer
234
views
Pretty URL to custom joomla page
I have an URL:
domain.com/photos?photoId=344
and I want to make pretty URL such as:
domain.com/photos/344
I tried to correct htaccess:
RewriteRule ^photos/([A-Za-z0-9-]+) /photos?photoId=$1 [L]
...
1
vote
0
answers
109
views
how to use mod_rewrite in joomla backend
how i can change the displayed address
administrator/index.php?option=com_content&view=article&layout=edit
to
administrator/content/article/edit
by using htaccess file in joomla
1
vote
1
answer
204
views
Optimal Apache Permissions for a Joomla website for PCI Compliance
We recently had one of our many Joomla websites fail a PCI compliance test, and our network folks are now telling us that we must "disable file_get_contents". As best as I can tell, it would be about ...
0
votes
1
answer
224
views
Subdirectories being blocked by .htaccess / Admin Tools
I am running a Joomla site and managing the dev environment using cPanel. I have set up a subdomain which I will be building the new version of the website in like so — dev.somewebsite.com (with the ...
0
votes
5
answers
2k
views
URL rewriting for a joomla website placed into a folder into the root public_html folder
I have my Joomla site placed into a subfolder of the root public_html folder. I have activated the url rewriting Global Option in the Joomla Admin Panel. I access to the website through the http://web....
0
votes
2
answers
8k
views
403 Forbidden Access, when accessing custom html/php files directly
I am trying to open html and php pages directly, but it shows :
403
Forbidden
Access to this resource on the server is denied!
When I try www.mysite.com/dir/ index page shows up, error ...
0
votes
2
answers
3k
views
I can not exclude folder from rewrite rules
I'm running a Joomla 3.3.6 site and I'm using rewrite. I have a subfolder, that doesn't belong to the joomla site.
I want to exclude this folder from the rewrite rule. This folder is also protected by ...
0
votes
1
answer
128
views
Joomla 4 Router forward to Controller function
For a Joomla 4 component I just cannot figure out how to successfully forward or call a Controller function from within a custom Router.
This is the Controller - it basically loads an image:
<?php
...
0
votes
1
answer
139
views
htaccess QSA not working in Joomla 4
Migrating a Joomla 3 component to Joomla 4 I have problems with getting Apache Server htaccess correctly configured to append query string from request to substituted URL - QSA flag. - It looks like ...
0
votes
1
answer
292
views
htaccess to hide Joomla in public_html -> subfolder
I installed Joomla using a quickstart package and store the files in a subfolder (named: jml) in public_html/jml. I normally use the following commands to rewrite the url from https://www.test.com/jml ...
0
votes
1
answer
439
views
Custom 404 page
I am having trouble with custom 404 page,
So I have been trying to get the custom 404 page to work but I have problem making it work right. All the methods that are described everywhere :
make ...
0
votes
1
answer
844
views
Redirect loop when https
I added ssl-certificate on my Joomla web-site. My actions:
Add certificate data to hosting
In configuration check SSL for entire
site
In configuration.php rewrite live_site as https://mysite.com
...
0
votes
1
answer
146
views
Shorten some URLs and show them to the user in another format
I have some sections of my web in joomla that are accessed like this:
http://miweb.com/index.php?option=com_component&view=contracts&ff=1&id=20977&token=8f8c54a3ce165332fd59f17319ba
...
0
votes
1
answer
1k
views
How to install Joomla in subfolder where Wordpress is installed in web root
I have Wordpress installed at example.com.
I did have Joomla 3 installed at example.com/joomla.
Now example.com/joomla loads a Wordpress 404 for some reason.
Even example.com/joomla/index.php loads ...
0
votes
2
answers
471
views
To access to joomla site trhough http://web.es without showing into the url bar the /joomla folder name
i have a website in joomla. I have this site hosted in a remote server. I have this joomla placed into a folder in the root public_html folder. I have activated the url rewriting Global Option in the ...
0
votes
1
answer
650
views
.htaccess recognize string and replace it
I would like that .htaccess recognize string in my url and replace it with another.
Previously I used SEO components, but today I want to use Joomla native seo, and I have different structure of my ...
0
votes
1
answer
638
views
Default landing page without language suffix
I have a multilanguage Joomla website.
How can I configure my site so that when someone types any url, it will always bring them to: www.mysite.com ?
Currently, a suffix is always added to my site ...
0
votes
1
answer
467
views
.htaccess and localhost issue
Local dev environment Win10/XAMPP
I have a number of local websites in my htdocs folder (eg. MyTestSite) that I access by visiting localhost/MyTestSite these work fine.
So today I restored a (Joomla ...
0
votes
2
answers
309
views
Redirect to home if someone tries to access com_users or frontpage editing (.htaccess, web.config)
I would like to redirect any trafic which tries to acces com_users (any view) or the frontpage editing (index.php?option=com_content&view=form&layout=edit) to the frontpage.
I don't want to ...
0
votes
1
answer
740
views
Redirect links from main to subdomain
I move part of my site to subdomain and want that link of that component redirect to subdomain. I want if user come to site with moved component link he will redirect to subdomain.
https://domain....
0
votes
3
answers
696
views
Joomla 2.5 GZIP compression error
This is completely annoying...
I have enabled gzip compression in Joomla system configuration
I have also enabled gzip compression in the htaccess file...
But every time I test http://ganeshgrow.es in ...
0
votes
2
answers
4k
views
Included .htaccess file causes admin folder to redirect to index.php
I've just enabled the included .htaccess file for Joomla 3.3.6 and now when I try to log on to the control panel it redirects to index.php in the root. By commenting it out I've narrowed it down to ...
0
votes
0
answers
20
views
Access Joomla login from another domain via CNAME
I have a client (seconddomain.com) who wants to setup a subdomain on their domain (learn.seconddomain.com) and point it to a login page on another of our client sites (firstdomain.com/seconddomain)
...