Redirect from “/“ to “/c†and put “/c†in the address bar?
Unanswered
thisemccracken posted this in #help-forum
I’m putting an app up I don’t want on its own domain so I have it on /c but I don’t want an index on my website yet. I’d rather not confuse people as my target audience is not tech savvy people so how can I make the address bar update on redirect ? I’m advertising the /c and I’d prefer as many people as possible using it.
6 Replies
@thisemccracken I’m putting an app up I don’t want on its own domain so I have it on /c but I don’t want an index on my website yet. I’d rather not confuse people as my target audience is not tech savvy people so how can I make the address bar update on redirect ? I’m advertising the /c and I’d prefer as many people as possible using it.
you just need to redirect normally (different to rewrite where the address bar keeps showing
/)I used the redirect function in next config is that right?
yes
But at least on dev / is just a copy of /c and not that web address in the bar
Oh okay if I type it in it redirects but using my nav that has a <Link> to “/“ makes the /c disappear. I suppose I’ll just delete that link for now