DNN Site Redirection - url

I am trying to migrate one html website into DNN. The problem I am facing is the URL. The old website had a URL like www.mywebsite/page.html and after migration it had become www.mywebsite/page .So when the user search for the old url it do not show up.I want that whenever the user enters any of the above url it should redirect me to www.mywebsite/page.
How to deal with the Site Redirection.

You have a couple of options.
1) You put a redirect in the HTML files, and put them in place, so that they redirect to the DNN pages (this is not the recommended option)
2) You add the URLs that you want a DNN page to respond to through the Page Settings in DNN when you configure pages. I believe they end up going into a TabURLS table, so you can add a couple, see the format of the data, and then do a bulk insert into the database for the rest of your pages/urls.
Chris

Related

Can prerender.io help for situations like dynamic seo for a front end route with dynamic parameters?

The detailed problem can be found on this link - https://stackoverflow.com/questions/36931309/dynamic-seo-for-routes-in-angular2any-frontend-routing-framework?noredirect=1#comment61422672_36931309
My situation is - I have a front end route /category/:categoryId. This categoryId could be different and accordingly I fetch different data from server. This data contains the title that I should set for this page.
Now doing SEO for different categoryId in this case seems impossible from frontend as google bot won't wait for my server response while crawling.
Can prerender solve this particular situation and how? I have never used prerender.io. My backend is written in ruby on rails.
Yep! Prerender loads your pages in a browser just like a user would and then saves the resulting HTML to serve back to the crawlers. That way you can dynamically load content, or even dynamically tell us to return a 301/404 to the crawlers based on the content.

How to delete old Google Urls with parameters

a month ago i relaunched a Website in Typo3 CMS. Before that, the site was hosted with Joomla CMS.
In Joomla Config, SEO Links were disabled, so Google indexed the Page Urls this:
www.domain.de/index.php?com_component&itemid=123....
for example.
Now, a month later (after the Typo3 Relaunch), these Links are still visible in Google because the Urls don't return a 404-Error. That's because "index.php" also exists on Typo3 and Typo3 doesnt care about the additional query string/variables - it returns a 200 status code and shows the front page.
In Google Webmaster Tools it's possible to delete single Urls from the Google Index, but that way i have to delete about 10000 Urls manually...
My Question is: Is there a way to remove these old Urls from the Google Index?
Greetings
With this amount of URL's there is only one sensible solution, implement the proper 404 handling in your TYPO3, or even better redirections to same content placed in TYPO3.
You can use TYPO3's handler (search for it in Install Tool > All configuration) it's called pageNotFound_handling, you can use options like REDIRECT for redirecting to some page or even USER_FUNCTION, which allow you to use own PHP script, check the description in the Install Tool.
You can also write a simple condition in TypoScript and check if Joomla typical params exists in the URL - so that easy way you can return custom 404 page. If it's important to you to make more sophisticated condition (for an example, you want to redirect links which previously pointed to some gallery in Joomla, to new gallery in TYPO3) you can make usage of userFunc condition and that would be probably best option for SEO
If these urls contain an acceptable number of common indicators, you could redirect these links with a rule in your virtual host or .htaccess so that google will run into the correct error message.
I wrote a google chrome extension to remove urls in bulk in google webmaster tools. Check it out here: https://github.com/noitcudni/google-webmaster-tools-bulk-url-removal.
Basically, it's a glorified for loop. You put all the urls in a text file. For example,
http://your-domain/link-1
http://your-domain/link-2
Having installed the extension as described in the README, you'll find a new "choose a file" button.
Select the file you just created. The extension reads it in, loops thru all the urls and submits them for removal.

Linking to a non-entrypoint GWT page

Is there a way in GWT to make it so that external sources can link to pages that aren't EntryPoints and have not yet been visited?
The end goal is to allow users to provide URLs to other users that link to a page that is not an EntryPoint. An example is how the GWT history feature works, where after you visit a page (such as http://<ip address>:<port>/MyEntryPointClass.html#NotEntryPointClass), even if you click to a different page and then enter that URL into the address panel, it takes you back to that page. However, if you've never visited that page before, it just takes you back to the entry point page. I have only been able to find solutions where a GWT page links to an external source, and not the other way around which is what I need.
You can use Activities and Places pattern. In your entry point class add:
historyHandler.handleCurrentHistory();
and it will take your user to the default place if no place is specified in the URL, or to the place set in the URL.

Umbraco - different behaviour for usual and ajax requests

I'm developing an Umbraco site that is a "single page" - no reload, only ajax calls.
The site will have nice urls and use html5 push state history.
The problem here is that every time a request is made to the server I need to handle it differently depending on the type of the request: normal or ajax.
For usual requests I need to display the content along with it's master page.
For ajax requests I need to display only the content.
I don't know how to accomplish this - routing and master page magic.
Can anyone help?
You could use alternate templates. For more information see here. Basically, have the alternate template just render out the content in whatever format you want, without the full html template, and then make sure that all your AJAX requests call the pages using the alternate template.
One word of warning though, if you're doing all the site navigation with AJAX and no page reloads, then Google (or most other search engine spiders for that matter) won't be able to index your site properly (as they don't process javascript) and your site won't rank very well.

Hide website filenames in URL

I would like to hide the webpage name in the url and only display either the domain name or parts of it.
For example:
I have a website called "MyWebSite". The url is: localhost:8080/mywebsite/welcome.xhtml. I would like to display only the "localhost:8080/mywebsite/".
However if the page is at, for example, localhost:8080/mywebsite/restricted/restricted.xhtml then I would like to display localhost:8080/mywebsite/restricted/.
I believe this can be done in the web.xml file.
I believe that you want URL rewriting. Check out this link: http://en.wikipedia.org/wiki/Rewrite_engine - there are many approaches to URL rewriting, you need to decide what is appropriate for you. Some of the approaches do make use of the web.config file.
You can do this in several ways. The one I see most is to have a "front door" called a rewrite engine that parses the URL dynamically to internally redirect the request, without exposing details about how that might happen as you would see if you used simple query strings, etc. This allows the URL you specify to be digested into a request for a master page with specific content, instead of just looking up a physical page at that location to serve.
The StackExchange sites do this so that you can link to a question in a semi-permanent fashion (and thus can use search engines with crawlers that log these URLs) without them having to have a real page in the file system for every question that's ever been asked (we're up to 9,387,788 questions as of this one).

Resources