Hi, I'm using the Calisto template. My site is hosted on a VPS server and we haven't redirected the DNS to it yet because it is still in development. I'm having trouble figuring out what the code for the root should be for the .htaccess
As a result, I can only put in hard links to things which I will then have to change once the site goes live and the dns has been sorted out. I also cannot turn on the .htaccess function without it falling apart.
The standard Joomla .htacess is fine... you can just rename htaccess.txt to .htacess straight away if you're on Apache
Don't turn on URL Rewriting/SEF URLs in the Joomla Global Config until you've got your domain/dns up and running.
So if you need to hardcode links to their furture SEF link then go ahead and do so, just realizing they'll die until the site is live... I usually leave those type of links as "#"'s until the site is live. You really shouldn't have too many hardcoded navigation links... Joomla should be handling most of your URLs
for image pathing just path from root with no leading / ... this will work fine before and after your DNS goes live and you switch from no SEF/URL Rewriting to both options enabled.
SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT
Unfortunately using # is not a viable option. My client wants to see a fully working site before we go live. Not to mention there would be tons of links to change later. So it seems like changing the root folder in HTACCESS is the best option and then removing that when it goes live. Can you please help with this?
Ignore those screenshots, it won't let me delete them. I have the htaccess turned on as you suggested, but I still need to fix the root folder I think for my links.
why and where are you hardcoding links? If you build your Menus with actual Joomla Menus via the Menu Manager then my approach described will work fine... same goes for any system/plugin/article generated "Read More"s.
you can still use the convention I noted in my original post for relative links in RokSprocket or wherever... turn on URL Rewriting and SEF (or however it's gonna be when it's live) and just path your URLS from root without a leading slash
this isn't a template issue and is really outside the scope of support... maybe you can get tricky with htaccess rewrites but the convetions noted here are what I usually do
SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT