Prestashop remove /presta on url - url

As the title says, I want to remove the /presta from my URL.
I can access it now with domain.com/presta but if I change from Preferences > SEO & URL > Base URL as "/", I can't access the site and if I connect to admin panel it's without GUI, just text.
Seems a little bit confusing.
Thanks in advance, sorry for any newbie mistake I've been working on this the whole day and it's my first try on presta.

i think all Prestashop files are inside a folder named "presta" instead of (for example) the httpdocs folder. Change shop domain and ssl domain to your domain name. Set base uri as / and press save. Now move all Prestashop files from the presta folder to the httpdocs folder. The presta folder should be empty, so you can remove it.

Current situation:
You prestashop files are stored in YOURSTORE/presta/
Request situation:
removing the subfolder /presta/ so people can enter the url YOURSTORE/ to acces your prestashop webshop.
What you must do:
copy all your files inside YOURSTORE/presta/ to YOURSTORE.
remove .htaccess (located here (after step 1): YOURSTORE).
Update your prestashop database: go to table ps_shop_url and change value:
physical_uri -> /presta/
To
physical_uri -> /
You should be able to enter your store now by visiting YOURSTORE.com instead of YOURSTORE.com/presta/

Related

How to get name of admin folder in prestashop?

$link= PS_ADMIN_DIR;
$admin_folder = substr(strrchr($link, "\ "), 1);
currently i am using this way to get folder name,
But if there are any direct method or any constant please suggest me..
Thanks
To be a little bit more specific : the name of the admin directory is on the filesystem.
When you access a page of the admin directory, a script puts the current directory's path in the _PS_ADMIN_DIR_ constant.
If you forgot the name of the the admin directory you must have a look at the filesystem of your server.
Admin directories are automatically renamed to something like adminXXXX.
If you named it differently you can compare the default directory structure with your actual structure and find the proper directory.
You can also look for files that are only present in the admin directory. The "get-file-admin.php" file for example.
On linux, the following command run from the prestashop root directory will tell you the actual name of the admin directory :
find ./ -name get-file-admin.php
For security reasons, admin folder name is not stored anywhere in your PrestaShop's files or database, so you have to do something like you do to find it.
However, you should use _PS_ADMIN_DIR_ instead of PS_ADMIN_DIR as the second one is not defined directly by PrestaShop and could be undefined.

In Laravel 5.6, how do I create relative links?

I'm new to Laravel (using 5.6) and can't get my links to work.
My directory structure is: resources/views/pages/samples
In the samples directory, I have 10 blade files I want to link to (named "sample1.blade.php", etc.). I have a "master" links page in the pages directory (one level up from samples).
I've tried the following but can't get any of them to work correctly...
Sample 1
Sample 1
Sample 1
Sample 1
...and a few other variations.
I've also tried adding a base tag to the HTML header but that doesn't help.
Every time I click a link, it says "Sorry, the page you are looking for could not be found."
What am I missing?
Thanks #happymacarts, I didn't realize I had to add a path for every single page in my site.
After adding the paths, the links are working.
I will get into the practice of updating the paths every time I add a page.

Generate URL of resources that are handled by Grails AssetPipeline

I need to access a local JSON file. Since Grails 2.4 implements the AssetPipeline plugin by default, I saved my local JSON file at:
/grails-app/assets/javascript/vendor/me/json/local.json
Now what I need is to generate a URL to this JSON file, to be used as a function parameter on my JavaScript's $.getJSON() . I've tried using:
var URL.local = ""${ raw(asset.assetPath(src: "local.json")) }";
but it generates an invalid link:
console.log(URL.local);
// prints /project/assets/local.json
// instead of /project/assets/vendor/me/json/local.json
I also encountered the same scenario with images that are handled by AssetPipeline1.9.9— that are supposed to be inserted dynamically on the page. How can I generate the URL pointing this resource? I know, I can always provide a static String for the URL, but it seems there would be a more proper solution.
EDIT
I was asked if I could move the local JSON file directly under the assets/javascript root directory instead of placing it under a subdirectory to for an easier solution. I prefer not to, for organization purposes.
Have you tried asset.assetPath(src: "/me/json/local.json")
The assets plugin looks in all of the immediate children of assets/. Your local.json file would need to be placed in /project/assets/foo/ for your current code to pick it up.
Check out the relevant documentation here which contains an example.
The first level deep within the assets folder is simply used for organization purposes and can contain folders of any name you wish. File types also don't need to be in any specific folder. These folders are omitted from the URL mappings and relative path calculations.

Change Jira Base URL

Is there a way to change the Base URL of a Jira instance.
JIRA 7.0.5
I remember it asked me when I started it up initially, but I can seem to find a way to change it.
Copy title of question and first google result: https://confluence.atlassian.com/doc/configuring-the-server-base-url-148592.html
Choose the cog icon , then choose General Configuration under Confluence Administration
Choose General Configuration in the left-hand panel
Choose Edit Enter the new URL in the Server Base URL text box
Choose Save
Changing the context path. If you change the context path of your base URL, you may also need to edit the web server's server.xmlfile to reflect the new path:
Stop the Confluence server.
Go to your Confluence 'destination directory'. This is the directory where the Confluence installation files are stored. For example, C:\Program Files\Atlassian\Confluence. Let's call this directory '{CONFLUENCE_INSTALLATION}'.
Edit the configuration file at {CONFLUENCE_INSTALLATION}\conf\server.xml.
Change the value of the path attribute in the Context element to reflect the context path. For example, if Confluence is running at http://www.foobar.com/confluence, then your path attribute should look like this:
<context path="/confluence" docBase="../confluence" debug="0" reloadable'"false" useHttpOnly="true">
Save the file.
Proxies. If you are running behind a proxy, ensure that the proxy name matches the base URL. For example: proxyName="foobar.com" proxyPort="443" scheme="https". This will make sure we are passing the information correctly.
This information needs to be added in the Connector element at {CONFLUENCE_INSTALLATION}\conf\server.xml.
Go to Admin->System->General Configuration
Click Edit Settings
Change Base URL and click Save
You can retrieve the base URL from the propertystring table:
select propertyvalue from propertyentry PE
join propertystring PS on PE.id=PS.id
where PE.property_key = 'jira.baseurl';
In order to update the Base URL, run the following update query in your JIRA database replacing the URL and restart JIRA.
update propertystring
set propertyvalue = 'http://jira.servername.com'
from propertyentry PE
where PE.id=propertystring.id
and PE.property_key = 'jira.baseurl';
more info follow this link
Crackerjoe is correct.
The suggestion given to do it with SQL is very bad advice. Using SQL on JIRA databases is to be avoided, especially when you can, and should, do it in the UI. If you do use SQL, make sure you have JIRA offline before you do it.

Umbraco cannot browse page by pagename.aspx

I have two seperate clean installations of Umbraco 4.5.x and both are having similar problems with page handling. If I browse pages by ID like /1083.aspx the page displays correctly, but if I try to browse by name like /about-us.aspx it gives 404 - file or directory not found.
Thanks in advance.
Sanjay
Sanjay,
This is because when you're hunting for root content nodes, the umbracoHideTopLevelNodeFromPath appSetting in the web.config is set to true by default.
As the name might imply, this hides the top-level node from the URL path. You can set it to "false" to override this behaviour.
HTH,
Benjamin

Resources