I have wordpress installed in a directory entitled 'wp'.
When I access my site then this is displayed in the URL.
eg. the about us page
will display:
http://www.domain-name.com/wp/about
Can I change this so that the 'wp' is not displayed?
to become simply:
http://www.domain-name.com/about
You need to change the root of www.domain-name.com to /wp/ (relative to what it's now).
Related
I understand that the normal workflow with hugo is to generate a static site using the "hugo" command, and then deploy your site by copying the public/ directory to your production web server. I don't want to do that: I just want the html files in the public/ directory to display correctly, and have links that work, when I open them in my web browser. I do not want to run the "hugo server" command.
Specifically, the links that are generated are all missing "index.html" at the end.
For example, a link to the About page will be:
file:///C:/Users/myusername/Documents/HugoTesting/quickstart/public/about/ which will open a view of that directory when I click on it. But it will display the web page properly if I can change the link to: .../public/about/index.html
How can I make that change throughout my site? I already set "relativeUrl" to true in my config file, as it says to do here:
https://gohugo.io/content-management/urls/ as it was necessary to get my index page to display properly. The documentation there says this helps to " make your site browsable from a local file system" so I know it must be possible.
I've tried using permalinks and using frontmatter to try and add "index.html" to all of my links, but hugo is adding an extra '/' to whatever I specify using permalinks, and while the "url" tag in the frontmatter works, it's not feasible for me to do for every url in every page.
I think ugly URLs configuration in Hugo might help you with this, (e.g., example.com/urls.html).
Set uglyurls = true or uglyurls: true in your site’s config.toml or config.yaml, respectively.
My images won't show up on an Angular 2 app on Github Pages. I could see the images during the app's development, but now the relative link returns the error: Failed to Load Resource on inspection.
The image link from development looks like this:
/assets/images/juno.gif
I tried copying the path from repo, but the image still doesn't show
mybiography/src/assets/images/juno.gif
I also tried copying the github link to the image file, but my Angular CLI service redirects me back to the application's home page.
https://github.com/st4rgut22/mybiography/blob/master/src/assets/images/juno.gif
Please advise what I should do, here's the link to the page where the images fail to show upon dropdown selection: https://st4rgut22.github.io/mybiography/work
When using relative path just start src path with ./
Change src="/assets/images/rot.gif" to src="./assets/images/rot.gif"
N.B. ./ denotes the current location
I want my URL to display my index.html file as default but only loads an OLD practice html page I uploaded to the FTP a few months ago. How can I make site load on www.me14ch.leedsnewmedia.net rather than its current www.me14ch.leedsnewmedia.net/index.html ?
(and yes I am aware the index.html looks very blank at the moment, this is because I need to update links in dreamweaver because I moved the file, just want to get the default url working first!) Many thanks
I am not sure what container you are using but in any tomcat base project you can specify the welcome file in container (web.xml).
In web.xml
< welcome-file-list >
< welcome-file >/index.jsp< /welcome-file >
< /welcome-file-list >
In apache you can use steps explained here
How do I set the root of the application?
What I mean, is that when I work locally, everything is under the root of my local website (i.e www.in cake.local/).
Now I made an application that will not be at the root of a website (i.e. www.outsite.com/sciences/biology/here_is_my_app).
Is there a way to make absolute URL in my app point to the app directory and not to the root of the website?
Let's say that www.outside.com is pointing to directory www.outside.com/ on Your hosting.
Putting Your app in www.outside.com/sciences/biology/ directory should do the trick.
You can also use the HTML base tag to achieve this, set it to Route::url('/');
In my CakePHP home page, I get the message:
Your cache is NOT working. Please check the settings in APP/config/core.php
I googled for possible solutions, some of which were to uncomment the Cache.check and Cache.disable line. Even then the error isn't resolved.
Also the webserver runs on www-data (exec('whoami');) whereas my home folder is public_html. How do I change www-data to public_html?
Besides, check if you have the original directory structure inside /app/tmp/cache.
Recently I had the same problem, and found out that for some reason my /app/tmp was empty. Redoing the directory structure helped.
Assuming your cache is set to file, make sure your /app/tmp and all the folders inside are world-writable (drwxrwxrwx).