permalinks

Best Permalinking for Rails

What do you think is the best way to create SEO friendly URLs (dynamically) in Rails? ...

Getting IIS6 to play nice with WordPress Pretty Permalinks

I've got a WordPress powered blog that I'm trying to get setup on our IIS6 server and everything works besides the permalink structure which I'm having a big headache with. After googling around/wordpress codex I learned that it's because IIS6 doesn't have the equivalent of Apache's mod_rewrite which is required for this feature to work...

Is it possible to create INTERNATIONAL permalinks?

Hello guys, i was wondering how you deal with permalinks on international sites. By permalink i mean some link which is unique and human readable. E.g. for english phrases its no problem e.g. /product/some-title/ but what do you do if the product title is in e.g chinese language?? how do you deal with this problem? i am implementin...

Wordpress permalinks: only using the post_id from the URL

I'm trying to have SEO friendly URLs for my wordpress blog, while still having the flexibility to change a post's title at will. My permalink structure would be like this: %post_id%/%postname% However, I'd like wordpress to just consider the %post_id% from the URL when looking for the appropriate post (sort of like here on stackov...

Django: Permalinks for Admin

I know the link template to reach an object is like following: "{{ domain }}/{{ admin_dir }}/{{ appname }}/{{ modelname }}/{{ pk }}" Is there a way built-in to get a permalink for an object? from django.contrib import admin def get_admin_permalink(instance, admin_site=admin.site): # returns admin URL for instance change page ...

Replace author url with different one (wordpress)

There are 3 authors in our company blog, each author has own site url in profile settings: Mike - http://mike.com Gelens - http://gelens.com Admin - http://site.com/company/ the links for profiles are: http://site.com/author/Mike/ http://site.com/author/Gelens/ http://site.com/author/Admin/ I need to replace a link to Admin's page,...

Permalinks not working for wordpress MU, images not showing up - .htaccess Problem

Hi, I moved 3 different wordpress installations to one single Wordpress MU. Every thing except Permalinks are not working and images are not loading on the webpages. Image URL style http://subdomain.domain.com/files/2009/05/image.gif I get 404. but if change i change it to wp-content/blogs.dir/4/files/2009/05/image.gif It works perfect...

How to create MSDN like links in Sandcastle documentation website?

I've generated a website documentation of my project with Sandcastle. This website uses frames so when I click though sites my URL in browser does not change. I would like to have URL changed in browser when I browse through website documentation generated with Sandcastle. Why? Because I would like to link to concrete subpages of docume...

Rails Routing Question: Mapping Slugs/Permalinks Directly under Root?

Morning Everyone!.. General Routing Quesiton Here... I'm currently working to achieve a route similar to this for users in my application. http://www.example.com/username This then maps to the usersControllers#show, hence I have the following in my routes file. map.connect '/:permalink', :controllers => "users", :action => "s...

How to create path redirections

I want to create internal path redirections like in Wordpress e.g. if i have a post (having permalink = 'hello-world') but still if I type 'http://localhost/hello/', I get redirected to 'http://localhost/hello-world' So what code do i use to automatically go to that page with that correct URI, i.e. change the URI that gets displayed in...

Wordpress "search engine friendly" urls ( permalinks) implementation

I had the pleasure to take a peak at Wordpress source code; i was wondering how they managed the custom url feature, but i couldn't really get it. The rewrite rules inside wordpress .htaccess file simply redirect all requests to index.php. After that, it's a mystery to me: how do they make example.com/this/title/is/cool/ match index.ph...

Wordpress: Two different Permalinks for same Blog

Is there any way we can have two different Permalinks in a Wordpress blog? This is because lot of us starts blogging when we have limited knowledge of SEO and end up in some URLs which are not that SE friendly. Hence lot of pages from Blogs are already indexed by search engine and we do not want to spoil old URLs. Thus I want to creat...

Redirect old permalinks (page_id=x) wordpress

I used to have my permalinks to standard format, something like http://example.com/?page%5Fid=2. Now I have changed this, using ISAPI rewrite in a httpd.ini file in the wp root folder. This is working, but I need to have the old page_id=x style pages redirect to the current permalinks which is in a form of http://example.com/subject. I ...

Platform-independent permalinks - best practices?

I'm trying to figure out a generic permalinks structure for blogging, in order to be platform-independent. I know that Wordpress supports permalinks, and has some plugins for various permalinks style migration, but I also have to get it working in FlatPress and PivotX, and I don't have URL rewriting support in every place. So far, I wil...

WordPress Post Date Changes On Update

Hi all, I have my permalinks in WordPress set to the Month and Name setting. This generates URLs like /blog/2009/09/my-post-name. Every time a post is updated, it changes the posting date, which can potentially change the permalink address. This is wreaking some havoc on my site, as I'll have banner/button ads throughout that point to ...

Need help with .htaccess ReWrite rules

I'm using Wordpress and have the following pemalink /%category%/%postname%. This gives me user friendly URLs like http://www.example.com/something/. With this permalink, I will not be able to access php files directly, e.g. http://www.example.com/something/myfile.php. I need to write a ReWrite rule which allows me access to /include/my...

Django - how can I get permalink to work with "throwaway" slug

I'm trying to add slugs to the url in my django app, much like SO does. Currently, I have pages that work just fine with a url like this: http://example.com/foo/123/ I'd like to add 'slugified' urls like so: http://example.com/foo/123/foo-name-here I can get it to work just fine, by simply modifying the urlconf and adding a throwa...

change the return of to_param by action? or, terribly broken edit action if perma-url is returned instead of id..

I did some stuff to have to_param return a perma-url so I'd have seo friendly links. Upon creation and update it will generate and return the perma-url in a to_param method that I put in the model. However this causing me some grief in other areas. I have a form that looks like this: <% @apps.each do |app| %> <% fields_for "[id][...

How do I use underscore in a wordpress permalink

Wordpress converts my post title to a permalink which is great, the only thing is that I want underscores instead of hyphens, is there a quick solution? ...

Permalink/slug best practices

I'm about to setup permalinks on a website and I'm wondering what sort of conventions I should follow in regards to generating them from the existing table of news articles. So far here are the rules/steps I've come up with: Create a dump file of my live database, set it up locally Add a new 'permalink' column to my news_articles tabl...