I had MODX Revolution installed by my hosting provider and subsequently I seem to have two ht.access files. One is located in the manager folder and the other is independent on its own. I have been trying endlessly to set up Friendly Urls on my site but every time I go to rename the ht.access file to .htaccess it will not let me and says the file format is not supported. Any advice on this issue will be greatly appreciated.
Step to reproduce
How to reproduce the issue, including custom code if needed.
Observed behavior
How it behaved after following the steps above. Annotated screenshots here are excellent.
Expected behavior
How it should behave after following the steps above.
Where are you trying to rename it? Iâm not sure if youâll be able to do that in the MODX manager using the file manager, but you should be able to rename it using FTP or command line
Yeah youâll need to edit the filename using FTP. If you have to use the file manager though then I think you can go into system settings and search for allowed file types and add a .htaccess file as an allowed file type, then you may be able to rename it.
Sounds and looks like itâs trying to find your assets in the wrong place. Try inspecting an image and see what the path is that itâs trying to locate it.
In general they should be declared as <img src="assets/images/image.jpg"> as base href returns something like http://www.domain.com/
Hi I am sorry, I made a mistake, it seems there is no system setting involved, my mistake. Iâm a bit confused about that, but I went into my install and couldnât find it.
I donât think this has anything to do with htaccess, because the extra code I donât think would affect thingsâŚactually not sure about that.
Now you can check for errors on your page using some online html checkers, that can help. Additionally, in your browser you can open âdeveloperâs toolsâ and this will give you a console where you can see the parts of the page loading, if something is wrong there could be error messages in there
But that code should work, could you paste your entire template to see what is going on?
Also, pls try using an extremely basic template, that base url code has to get in there somehow
I tried using one of my most basic pages and it seems to knock out all images for some reason. Text, menus and buttons all appear fine is just images it doesnât like and also the URL doesnât change itâs still /index.php?id=114
Whatâs the output of an image path in your source code? What steps do you need to take in your browser inspector to make it link to the correct image?
Ensure youâve also cleared your cache both for modx and your browser
I mean if you right click on the image source in the code and go open in a new tab it doesnât open the image does it? What do you need to edit in the address bar to correctly navigate to it?