2014-09-30, 12:54:04
(This post was last modified: 2014-09-30, 12:55:28 by johnstray2001.)
A possible workaround:
in the blog's layout template file, change the links so that the desired url style is archived. You can use the $post->slug variable to add the posts slug to your url structure. Once you've done that, you would need to modify the blogs lines in your htaccess file accordingly.
An example, say you wanted to use the following url for your post: http://www.domain.de/post/the-title-of-my-post.html
In your layout template, change your links to look like this:
In your .htaccess file:
The only downfall to this method is that it will only work for post links, it won't work for categories, archive, tags, etc.
in the blog's layout template file, change the links so that the desired url style is archived. You can use the $post->slug variable to add the posts slug to your url structure. Once you've done that, you would need to modify the blogs lines in your htaccess file accordingly.
An example, say you wanted to use the following url for your post: http://www.domain.de/post/the-title-of-my-post.html
In your layout template, change your links to look like this:
PHP Code:
<a href="<?php echo get_site_url(false).'/post/'.$post->slug; ?>.html"> The title of my post </a>
or
<a href="http://www.domain.de/<?php echo 'post/'.$post->slug; ?>.html"> The title of my post </a>
Code:
RewriteRule ^post/([^/.]+)/?$.html index.php?id=index&post=$1 [L]
The only downfall to this method is that it will only work for post links, it won't work for categories, archive, tags, etc.
Check out my website: JohnStray.com