How to replace mediawiki in url as my wiki name - mediawiki

I am using mediawiki. My url is
http://localhost:1028/mediawiki/index.php/Main_Page
I need to replace mediawiki in the url say samswiki. So the url should be like
http://localhost:1028/samswiki/index.php/Main_Page
Any suggestions on how to do this? Thanks
Things that I have tried.
1.) Renamed the folder mediawiki to samswiki.
2.) Changed $wgScriptPath to samswiki in LocalSettings.php
But both did not work

You can edit installdir/apps/mediawiki/conf/httpd-prefix and change the alias from mediawiki to samswiki. Then restart apache and it should work.

Related

¿How can i add a url path in html withoout a server, when click on about. Exist a meta name?

I need to change url with a click, without a server because i have in githubpages and domain in netlify, i know that maybe using npm and deploy a build but i want something more easy because the site is deploy and we don't want conflicts :( thanks community i try with meta property but cant, i have the hosting in github and just a index.html
I solve it in netlify,going to build and deploy then to Post processing and finally to Asset Optimization, the enable pretty urls, the engine read de href that have a html and clean a pretty url.

Nginx Clean url

I need clean urls for my website.
Html should be removed from the url name and if a website visitor should be able to visit my website without entering .html.
Can someone help me how to do this with the rewrite feature?
I use the Admin Software Plesk with the nginx Server!
You can read from the official blog or you can try something like this.
They must be inside location / {}
http://example.com/page
http://example.com/page.html
rewrite ^/page?$ /page.html last;

How do I link two HTML files present on the same server?

I have signed up on infinityfree.net and uploaded my files online in the folder which said "upload yours files here".
Now there are two HTMLs present in the folder namely
Index2.html
chatbox.html
I want to link an chat box to an image in the index file I used all proper tags(I know because I tried https://www.google.com and it worked), but I'm just not able to do it.
Things I tried:
"https://www.domain-name.cf/chatbox.html"
"chatbox.html"
"/htdocs/chatbox.html"(htdocs is the name of the folder)
I also got the errors 404 and 403.
Please help.
I realized that infinityfree prevents accessing files which contains "chat" in their names , try to rename chatbox.html with another name who doesn't contain "chat" then it will work for sure .
If you are using PHP you can use the header("Location:path_to_your_file");
<img>...</img>
This should work for you.
Since both the files are in same folder you can directly write "chatbox.html".

Jekyll website hosted on gh-pages via github. Need to use a custom URL

I am wanting to use a custom URL for this github website, but I ran into issues when I tried. The repo is below if you want to view my files. I had to do a 'git reset --hard "commit" ' to get it working again!
I dont know if I need to change my base URL too because none of the css worked, and no href links to other pages on the server worked either. Then I was getting build errors on github with no details as to why.
Steps I took:
1) I have a domain with godaddy
2) Then I went to github and changed the Custom url to the domain i have on github.
3) Then github created a cname file by its self with my url in it
4) I went to godaddy and pointed to the servers provided by github.
5) It display my html files, but no href links work, and CSS is not working. I think it has something to do with the base url or something...
https://github.com/jose-reyes-9/school-amp-1
In _config.yml change :
baseurl: ""
url: "http://yourcustome-domain-url.com"
And add a CNAME because github doesn't create it for you.

When a URL ends in a slash, does that mean they're using an index file?

My spider sense tells me that they're not using a folder with an index file for each page, like apple's for example where http://www.apple.com/iphone/ ends in a slash. I've seen it also at other personal sites. How are they able to do it?
They use rewrite rules in their .htaccess files, so /iphone/ could be a folder, or it could be a controller/action of their web application.
Check this link for more info:
http://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/