Changing the name of the Page alias - url

In Kentico 8.2 the sub-page in the URL is misspelled. The Name Path is spelled correctly.
I see that under Pages > Properties > URLs there is a place to change the alias name. Will correcting the spelling here affect anything drastic change in the website (say, in the code)? I'd be inclined to say No, but I wanted another opinion.

Technically speaking of you make the modification/update Kentico will keep an alias of the misspelling so if anyone has reference to it, they can go to that bad URL and be redirected.
If there is custom code looking for that misspelled URL then it will have to be corrected but as you stayed probably not.
If webparts or widgets refer to that misspelled URL in the path property, they will have to be corrected. You will notice this right away on pages of they are referencing that misspelled URL because your content won't show up.

If you change the page-alias it will add the old alias to the list of page aliases (ie. old links to the page should still work).
Are you specifically using that page-alias in code anywhere to identify the page?
similar to:
var aliasPath = tree.SelectNodes()
.WhereLike("DocumentName", "Tutorials").FirstObject.NodeAliasPath;
but referring to the alias field instead.
Would the page be linked in any wysiwyg editors? I'm not sure if behind the scenes kentico would use page-alias in this instance or the document guid. Although if you retained the old misspelled alias then existing links should work.

Related

How is url without protocol differs from a simple one?

I often see people use urls like below for CDN resources.
<script src="//site.domain.com"></script>
I wonder how it's different for browser if it was specified like "https://site.domain.com"
It means "keep the same scheme" than the actual document.
See shorthand http:// as // for script and link tags? anyone see / use this before?
UPDATE : correct link.

Wordpress URL change

I have recently moved my wordpress site from "test.xxxxxx.com" to "xxxxxx.com" They are both identical except I just want to get rid of the "test" portion of my url on my index page and all my links. They are both on the same FTP and server. I transferred my site and have the homepage url working correctly but when I click on any of the links it still says "test" in front of the url. I have tried a couple different search and replace plugins with no luck. Is there a better way to go about this?
Wordpress has a problem that it doesn't update the permalinks easily. So, maybe you will have to change the permalinks manually in the wordpress database.
Use Better Search Replace plugin in order to fix old urls in your database.
After downloading and activating the plugin, you juste have to type old url to find and by which url to replace it, in your case you have to do it twice :
test.xxxxxx.com to xxxxxx.com
and
test.xxxxxx.com/ to xxxxxx.com/
I advice to do it twice because sometimes the plugin make difference between these two (strict string comparison I think) and wil not modifiy everything with only one command

Delphi: Set Browsers Homepage

I want my application to be able to set IE, Firefox, Chrome & Operas homepages when a button is pressed. I understand IEs homepage is set in the registry, which I understand how to change, but can anyone give me any help with the others? Thanks
Chrome stores the homepage in a file called 'Preferences'. On Windows XP, this is located at;
C:\Documents and Settings\USERNAME\Local Settings\Application
Data\Google\Chrome\User Data\Default
On Vista+, it's located at;
C:\Users\USERNAME\AppData\Local\Google\Chrome\User Data\Default
This file is JSON format, and so it can be opened and viewed as plain text. In order to change the homepage, you'd need to load the JSON from this file, and change the homepage field value. You may also need to change the homepage_changed field value in order for it to stick. Using something like SuperObject to change the field would be an easy solution (if I get time, I'll write up some example code later).
Firefox uses a pref.js file to store it's settings, and realistically, a way of changing this would be to load this file, find the something that's along the lines of;
user_pref("browser.startup.homepage", "[URL]");
...and edit it as appropriate before saving the file. This should be a simple task using some simple find-and-replace code. I'd strongly advise that you use a pos() function though, as it could be that the end-user has already got their own custom homepage set and so searching for a preset string (e.g. [URL]) may not work, and certainly wouldn't be reliable.
A quick search hasn't given me enough information about Opera to provide a solution, but I'll keep looking and respond if I do find such a way.
Note that none of these methods have been tested and are merely provided based upon some very quick research.

osCommerce links to categories taking to a wrong page

I'm modifying a website made with osCommerce (I didn't make this website), and one of the things I have to modify is the look of the home page. My problem is that I have modified the index.php file, and all the changes look fine.
However, when I click a link that has been written in PHP with this function:
<?php echo tep_href_link(FILENAME_DEFAULT,'cPath=24&sort=2a') ?>
(In /includes/filenames.php I have define('FILENAME_DEFAULT', 'index.php');.)
What happens is that it shows the correct results, but in a different page, with the old design. I don't understand it, because that link should take me to the same index.php that I modified, but obviously it's taking me somewhere else.
I don't know what page is it showing, the only thing I see is the link written by the PHP function:
(my_catalog_folder)/escaparate-c-24.html?sort=2a&osCsid=p7fp55t489nv042p0ip4mp7si1
I guess that the tep_href_link() is writing that, but I don't know what page is using to show the results.
Any clues would be much appreciated!
This is expected behaviour if the store has the SEO URLs module installed.
Look in the .htaccess file and you should spot this line:
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
Any and all requests for a category will be rewritten in a friendlier URL string like the one you noted.
As to the use of the older design, double-check the real file being called with an echo out of the $_SERVER["PHP_SELF"]; or $_SERVER["SCRIPT_NAME"]; and make sure the filename and path is correct.
Drop that into a file like includes/application_top.php before the final lines (or the closing ?> if you still have that there):
echo $_SERVER["SCRIPT_NAME"];
It may also be due to caching of the pages. Check to see if there a cache module installed as well.

Windows .url links that point to same address when copied over or deleted

This is really annoying, we've switched our client downloads page to a different site and want to send a link out with our installer. When the link is created and overwrites the existing file, the metadata in windows XP still points to the same place even though the contents of the .url shows the correct address. I can change that URL property to google.com and it points to the same place when I copy over the file.
[InternetShortcut]
URL=https://www.xxxx.com/?goto=clientlogon.php
IDList=
HotKey=0
It works if we rename our link .url file. But we expect that the directory will be reused and that would result in one bad link and one good link which is more confusing than it is cool.
Take a look at here: http://www.cyanwerks.com/file-format-url.html
It explains there's a Modified field you can add to the .url file. It also explains how to interpret it.
.URL files are wierd (are they documented anywhere?)
Mine look like this and I don't seem to have that problem (maybe because of the Modified entry?)
[DEFAULT]
BASEURL=http://www.xxxx.com/Help
[InternetShortcut]
URL=http://www.xxxx.com/Help
Modified=60D0EDADF1CAC5014B

Resources