BlogEnginet.net to Jekyll migration without breaking URLs [closed] - url

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am currently using BlogEngine.net as my blogging platform. I'm fascinated with the beauty and simplicity of Jekyll and want to move to it.
I have found 2 resources which help in migrating existing posts: http://doingthedishes.com/2011/04/14/moving-to-jekyll.html and http://philippkueng.ch/migrate-from-blogengine-dot-net-to-jekyll.html. I am yet to try these methods. However, I'm worried about conflicting URL structures, which can cause broken links to my posts which are referenced elsewhere.
BlogEngine.net uses the URL structure "http:// sitename.com/post/title-of-the-post.aspx". I'm not sure if I can retain the same URL structure after migrating to jekyll (I've checked Jekyll's permalinks https://github.com/mojombo/jekyll/wiki/Permalinks, but I don't think it can help). Kindly let me know how I can solve this problem of migrating from blogEngine.net to jekyll without breaking URLs and losing SEO ranking.
Edit: I want to host my static blog on Github pages, which do not support redirects. Is there a way I can use Github or should I choose a host which supports htaccess redirects?

You can maintain the same URL structure with Jekyll. Add the following in _config.yml file,
permalink: /post/:title.aspx/index.html
Jekyll picks the :title from the URL part of file present in _posts folder.
Ex: File name: 2012-06-09-title-of-the-post.markdown, title: title-of-the-post
Since my blog is powered by Jekyll, I tested locally with this new URL format with .aspx extension. It worked.
Jekyll creates a folder called "title-of-the-post.aspx" instead of file, and creates index.html inside that folder. so no redirects required.

Related

How to publish and implement Ruby file to my website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm a beginner of Ruby. I want to establish my website by programming with Ruby language.
Before that, I used to upload HTML files to my web-host server, so that I could update my website. But now I have no idea about what should I do with Ruby file.
Thank you!
If you are using the rails framework you may wanna try using cloud9 instead. Brackets from what i understand is "local". Whereas cloud9 is a "real" IDE. Additionally you can easily push your code to heroku where your code will be hosted at.
To get things started just head over to cloud9 to create an account to setup your IDE. If you are unfamiliar with it there are lots of guides out there that can help you to get things started.
However if you lack the fundamentals in using the rails framework, guides.rubyonrails.org may be a good place to start too.
Update:
There is no best language when it comes to developing a website. The fundamentals of a webpage are HTML/CSS.
HTML gives you the bones or structure, such as your titles and your paragraphs etc.
CSS gives you your styling, such as creating buttons or changing font color etc.
This 2 languages form the core part of what would be your website, at the very least on the front end (meaning to say what people see when they visit your website)
JavaScript is not a must but definitely a plus. It is able to improve the UI/UX (user interface/user experience) of your website.
Lastly would be your back-end language; what handles the processes that goes on behind the scenes. If you choose ruby (and by extension rails) then that is fine as well. Basically your back-end language will support your database and CRUD (create, read, update, delete) actions.

Sending a MVC project to someone [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
The company I've applied for internship wanted me to do some mvc project. I've finished the project but I really don't know how to send it to them via email.The project includes a small database. I know I can't compress the solution folder and send it. Do I have to upload the project to a hosting service? If I deploy it to a hosting service and send them a website url then can they evaluate my work?
I suggest that you
Register on Github or Bitbucket (if you want private repos)
Create a Git repo with this .gitignore file.
Give them an url to a repo, and they will have a better impression of you.
Generate script for your DB (You can generate with data too.)
Remove bin directory.
Add readme.txt file in which mention all steps that need to be performed for setting up your project.
Create zip file and send it.

Rails + AngularJs web app [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm going to create some AngularJS/Rails app, but I'm a newby in developing with AngularJS. So, I have one question: should I divide my project with 2 parts: the first one is just HTML/CSS/JS code and the second one is Rails API? I also can do all work in the Rails project. What should I prefer? Thanks in advance!
Personally I feel that the clean way is to put the html files under the public folder. Also this will make it easier to point Angular routes to your html files as you don't have to mix .erb with your javascript, which also gives you the ability to use pure coffeescript everywhere (You cannot make .coffee.erb files sadly).
The folder structure for all my Angular applications was following:
Angular coffee files:
app/assets/javascripts/angular/
In there I have seperate folders for controllers services and directives. In controllers folder I have the same namespacing going on as in Rails controllers folder.
So if there is a content namespace where I have likes and media controllers inside of it, then it looks the same in Angular folder.
Angular template files:
public/templates/
In public/templates where I keep the .html files, I follow the rails way of naming folders and files, and also keep the namespacing. So if users folder has an index page and a show page then I also have show.html and index.html.
Here are some very good examples where people have made Angular - Rails applications:
CafeTownsend
Rails4-AngularJs example

Should I include file extensions in my webpages url paths? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I've been trying to do some research for whether or not I should include file extensions in my url paths in my website (and whether or not it is detrimental to use relative urls).
Among some of the sites I have visited for this research are listed below:
http://css-tricks.com/snippets/htaccess/remove-file-extention-from-urls/
http://www.seo-theory.com/2011/11/30/how-do-pretty-urls-help-search-engine-optimization/
However, none of them have really answered my questions.
As for whether or not to include file extensions:
Assuming that all of the links are NOT broken, and I have constructed them properly, are there any downfalls to linking to other pages within my site and including the file extension? Originally, I thought I should include them just for specificity's sake, but now I know it doesn't make as pretty of a url.
Does this effect SEO greatly?
Should I go back and erase all .cshtml, .jpg, etc. from my url paths? Should I include this removal from the tags that link to my .js and .css external files?
If it matters, the context of this question is coming from a C#.net WebMatrix environment.
You can erase the .cshtml part of your urls if you like (I generally do) but you should not erase the extensions of images, style sheets, JavaScript files etc. The .cshtml files will be found by the Web Pages framework through its rudimentary routing system, but that only applies to .cshtml and .vbhtml files. If you remove the extensions from other types of file, they will not be found. And in any event, it would be pointless. It's not as if you want Google to index your .css file (which it doesn't).
As to whether removing the .cshtml extension will affect SEO - no, it will make no difference. If it did, you would easily be able to find a lot of advice to that effect.

SEO - DirectoryIndex duplicate content [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
On a site I'm working on there will be about 7 different directories. I use DirectoryIndex in my .htaccess to point to index.php, so you can go to site.com/menu/ or site.com/menu/index.php and get the same content and so on for the other 6 directories.
I know duplicate content is supposed to be bad. Will this cause any SEO issues, or will search engines be smart enough to understand it's a DirectoryIndex and only index the result once?
Using DirectoryIndex is a very common practice. If done right it isn't a problem. However it can introduce duplicate content.
Pick one to be "canonical". You probably want to use site.com/menu/ as canononical. Who wants to see "index.php" in urls?
Never link to the non-canonical version. Instead of href="index.php" use href="./" Users shouln't ever see "index.php" in the url by clicking around the site.
If you do that, Googlebot will probably never even know what the real name of the file is and there will be no problem. If Googlebot does start crawling urls with "default.php" in them, then use the canonical tag to tell Google which is the correct url that it should pay attention to.

Resources