-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request shorter URL for simple-search #19
Comments
Not just
but even
|
The 'www.' is not required: https://sanskrit-lexicon.uni-koeln.de/simple/lan/ca I'm still not comfortable changing 'simple' to 's', however. |
Let us have a rule that www. is redirected no to non-www, so it never arrives anymore. No need to have it. Length matters. |
The way the .htaccess rule is written, both https://sanskrit-lexicon.uni-koeln.de/simple/lan/ca and https://www.sanskrit-lexicon.uni-koeln.de/simple/lan/ca work the same. So, its just a matter of user convention which is used. When we document or publicize the |
Thanks a lot! Now we have: Let us have:
Short links will never break! A 26 character shorter link will break 100 times less frequent. |
I suggest to resolve the issue by modifying the Apache config with rules that rewrite URL. @funderburkjim , could you give me access to the server? My telegram is |
@alexander-myltsev Sorry, no. If you want to suggest rewrite rule (s), please provide one such (to start), and I'll examine and perhaps put it in an .htaccess file on the server as an experiment. If you do supply such an .htaccess rule, please provide good documentation of
|
@funderburkjim I need to run it locally to experiment with Apache rules. is there the instruction how can I run the project locally? |
There are some instructions at https://github.com/sanskrit-lexicon/COLOGNE/tree/master/localinstall You should take a look at the mac notes, even if you are installing on Windows (xampp instructions). xampp provides a local apache-php server. If you already have such a server (e.g. on a linux box), |
One option would be, on a Windows PC,
You will then have a file system like:
You can make copies of say md, with other names (more like the cologne server directories) your display urls will be like localhost/cologne/md/web/, To play with urls more similar to those on Cologne server,
Then you would be able to use urls like |
@funderburkjim do you occasionally have Docker file to set it up? |
No Docker file. Have you got a local Apache server with PHP? If not, then can you install one from XAMPP? |
If I make Dockerfile, would you accept PR? |
I think there is no harm in accepting PRs for Docker file. |
All I need back from you is the .htaccess file. |
Once you have Apache with PHP, you can download a dictionary display. |
If 'PR' means 'pull request', I would rather not add a Docker file to any of sanskrit-lexicon repositories. |
@funderburkjim this seems like a long instruction to follow :) If you host the server in a cloud, may be you can clone the existing machine for my dev/test needs? |
Looks like we are stuck. |
@funderburkjim I compose, test locally and provide you the Apache config file only. without installing the |
sounds like a plan. One question - you said apache config file. Why not .htaccess? |
Sure, let it be .htaccess. |
@alexander-myltsev still doable? |
Should be, but I don't have time capacity for that one. Sorry. |
This was discussed in #18.
The request by @gasyoun is to use
in place of current
The text was updated successfully, but these errors were encountered: