Reinis,
Thank you so much for all your help!
I have succeeded in getting things set up for now.
I couldn't have done it with out you guys.
I have learned a lot form you and Francis and I am very grateful.
Thank you for being patient with my ignorance.
Sorry to both of you for wasting your time
You really should use a custom named capture group as the default "$1"
(and $2, $3, $4...) can cause erroneous output if there is any other
capturing going on in your configuration files...
i.e.
location ~ ^/e/(?.*) {
return 301 /$x1$is_args$args;
}
As someone else mentioned, be
>You should clean cache (or set to never cache) for each testing
session/config change as browsers tend to cache the redirects very heavily
(especially for static content).
>A better way as Francis suggested is to use a curl or other tools (like
wget -S ..) which don't cache anything and you'll al
> Please bear with me...
> It seems that I'm getting different results than I described earlier...
>
> In fact it is now working for the most part...
> The errors are limited to certain files in Chrome on the Mac, but not in
> Safari
> or Firefox.
You should clean cache (or set to never cache) f
Thank you Reinis!
Please bear with me...
It seems that I'm getting different results than I described earlier...
In fact it is now working for the most part...
The errors are limited to certain files in Chrome on the Mac, but not in
Safari or Firefox.
>What do you mean by "got deeper" can you g
> I was wrong...
>
> >This seems to work:
> >>rewrite ^/e/(.*) /$1 permanent;
>
> It only works for the first level...
> 'threedaystubble.com/Gallery.html' works but other links from that page that
> got deeper into the file structure do not!
What do you mean by "got deeper" can you give a sampl
I was wrong...
>This seems to work:
>>rewrite ^/e/(.*) /$1 permanent;
It only works for the first level...
'threedaystubble.com/Gallery.html' works but other links from that page that
got deeper into the file structure do not!
So, maybe map directive is needed after all...
I'm planing to try
Thank you Reinis.
I really appreciate your help and your patience.
I am trying to learn this, so seeing what how it works is very useful.
To be clear, hopefully, I need all the (multiple) subdirectories of
threedaystubble.com/e/ in existing inbound links to refer to the new
structure threedaystub
It is a bit unclear if you want only a single rewrite or are there multiple
different directory mappings/redirects.
> I tried a couple of ideas, but they didn't work, I thought this location
> directive
> inside a server block was best, but it didn't work.
>
> location = /e {
>return 31
I'm looking for help with a permanent site-wide redirect.
I have a website that I moved to a new server.
For some crazy reason the old server had an odd structure that I am
changing.
The URL root for the old site is http://threedaystubble.com/e/
I have changed it to be http://threedaystubble.com
10 matches
Mail list logo