I installed Joomla in peterrisman.com/PilotMarketingStrategy-J/
I successfully built a new website
So far, so good.
I pointed pilotmarketingstrategy.com to peterrisman.com/PilotMarketingStrategy-J/
I updated .htaccess with RewriteBase /
I updated configuration.php with public $live_site = 'http:// pilotmarketingstrategy.com'
Viola! the site is live... BUT
I can't log into the admin from pilotmarketingstrategy.com/admin/index.php - it doesn't recognize my ID or p/w.
In order for me to log into the admin, I have to change configuration.php back to public $live_site = 'http:// peterrisman.com/PilotMarketingStrategy-J/'. When I'm finished, I have to change back to public $live_site = 'http:// pilotmarketingstrategy.com'
This CAN'T be right. Does anyone know how to properly configure Joomla so that both the live site and admin share the same domain?
Try setting the live_site parameter to null so the line in your configuration.php file should look like this:
public $live_site = '';
Recent Joomla installs rarely need this parameter to be set.
Here is a great answer how the paramter live_site works. Maybe this gives you the answer for your Problem.
Related
My issue is, the value passed is received alright in blade in my local server. But in my remote server, blade file cannot access the value set in controller. Why that might be?Can somebody help please?
In HomeController
public function getDetails(Request $request) {
echo $url = $request->input('url');
return view('home.details')->with('url', $url);
}
Here, no value is echoed.
Looks Like the real problem is, in remote server I am not being able to read url params for some reason.
Any sugestion please?
Can't read url params in php laravel
This url has my answer! The problem seems with the .htaccess file. The confusion is, why it works in my local server then?
I used the .htaccess described in following link
https://github.com/laravel/laravel/blob/master/public/.htaccess
Just I added
RewriteRule ^(.*)(images|css|js|fonts|upload|plugins|img|ckeditor)(.+)$ public/$2$3 [L]
the line above because of my apps folder arrangements. So far it's working fine now.
Though the question is answered, I will appreciate if somebody could explain why the same .htaccess that works in my local doesn't in my remote?
I've just set up a new and clean hybris instance, created a b2c accelerator storefront using ant modulegen and the receipe b2c_acc - and of course I initialized my system after those steps. Everything works fine, but the CMS Cockpit preview.
Every time I try to open the preview of a page within the CMS Cockpit, I receive a HTTP 500 error which is being caused by a NullPointerException within this method of the DefaultUrlEncoderService class:
#Override
public Collection<String> getEncodingAttributesForSite()
{
return getCmsSiteService().getCurrentSite().getUrlEncodingAttributes();
}
The reason is that getCurrentSite() does not return any website, though the page I try to open (e.g. the Homepage) has been assigned to the "apparel-de" website.
Does anybody have a clue what might be the issue?
Did I miss anything?
change the location protocol from http to https:
https://localhost:9002/cmscockpit/index.zul
I want to be able to open pdfs that live in a folder at /app/somefile/file.pdf via apache like this http://mysite/app/somefile.file.pdf. I've tried adding a RewriteCond in CakePHP's .htaccess file:
RewriteCond %{REQUEST_URI} !^/app/somefolder/ - [L]
But just get a 500 error. What am I doing wrong?
Use this in your controller and use routes to access it the way you want, opening up other folders for the world is NOT a good idea
Sending files
There are times when you want to send files as responses for your requests. Prior to version 2.3 you could use Media Views to accomplish that. As of 2.3 MediaView is deprecated and you can use CakeResponse::file() to send a file as response:
public function sendFile($id) {
$file = $this->Attachment->getFile($id);
$this->response->file($file['path']);
//Return reponse object to prevent controller from trying to render a view
return $this->response;
`enter code here`}
As shown in above example as expected you have to pass the file path to the method. CakePHP will send proper content type header if it’s a known file type listed in CakeReponse::$_mimeTypes. You can add new types prior to calling CakeResponse::file() by using the CakeResponse::type() method.
If you want you can also force a file to be downloaded instead of being displayed in the browser by specifying the options:
$this->response->file($file['path'], array('download' => true, 'name' => 'foo'));
source: http://book.cakephp.org/2.0/en/controllers/request-response.html#cake-response-file
You could use an Apache alias to make the contents of that directory publicly accessible:
Alias /app/somefile /app/webroot/somefile
Place the above code in a server/virtual host config file, not .htaccess.
Make sure the web server user has read access to that directory.
you could just make a symlink to them, though your apache config may or may not be allowed to follow them.
I was able to do this buy only adding this to the .htaccess file in the root:
RewriteCond %{REQUEST_URI} !^/app/somefolder/
(My original version had a [L] which is incorrect, and that's why it wasn't working.)
Just in case anyone doesn't already know: this is not generally a secure thing to do. I have very specific reasons for doing this.
The default app url looks like http://[app prefix]-[app id].[domain name]/[site collection path]/[app path]/pages/default.aspx.
It is unconvinient because every deployment during development generates new url. And after development stage the end users need a permanent link to the application, but every bug fixes or updates that will be deployed will cause new app url generation. Is there right way to fix the app url?
You can create a URL controller:
Create a list that would contain two fields: fakeUrl, realUrl,
fakeUrl can be something like "http://staticappname.[domain name]/[site collection path]/[app path]/pages/default.aspx"
realUrl would be your http://[app prefix]-[app id].[domain name]/[site collection path]/[app path]/pages/default.aspx
Give your users fakeUrl
Create a HTTPModule that would read the list and redirect the http request to the realUrl
After you redeploy your app, just change the realUrl in the list
***I'm not if this is your case but you could change your app to be a provider-hosted. Then you would get a static Url
You can open your SharePoint hosted add-in using an alternate link like:
http://[SharePointSite]/[Add-inName]
For eg.
http://contoso.com/sharepointhostedapp/
I had MediaWiki installed in as the default site on my server using IIS 6 and I created a virtual directory and pointed it to the Wiki folder. The page loads, but all the links are pointing to the original location that is no longer pointing to the Wiki Folder.
Info
Server Name: tech
Path to Wiki: http://tech/wiki/
Example
Links
Wrong Link - This is the current link displayed
http://tech/index.php?title=Main_Page
The link should look like this
http://tech/wiki/index.php?title=Main_Page
All of the links are not showing the /wiki
Any ideas?
Do you have this in your local settings?
$wgArticlePath = "/wiki/$1"; # Virtual path. This directory MUST be different from the one used in $wgScriptPath
$wgUsePathInfo = true; # Enable use of pretty URLs
Try setting
wgUsePathInfo = false;