What do i change in .htacess to change the URL prefix for blog posts?

Hi,

A beginner’s question:

Where in the .htaccess file do I change ‘blog’ to ‘video’ if i want to change the url prefix for blog posts as directed in the config file:

$url_prefix = ‘blog’; // blog-1-post-title, if changed also edit htaccess

Not sure which ‘blog’ or ‘blog’(s) to change to ‘video’:

RewriteRule ^blog-page-([^-])$ ?page=$1&p=blog [L]
RewriteRule ^blog-([^-]
)+? ?d=$1&p=blog [L]

Thanks very much for your help!

David

RewriteRule ^video-page-([^-]*)$ ?page=$1&p=video [L]
RewriteRule ^video-([^-]*)+? ?d=$1&p=video [L]
1 Like

Thanks @IvaRo! :slight_smile:

Good information (not only for .htaccess) can be found at
https://github.com/phanan/htaccess.

https://github.com/ all Search = Search.

Robo

Unfortunately that didn’t seem to work. My url’s still have ‘blog’ in the prefix like this:

/post/?blog=5&title=And-Finally-Video-#5

/post/?blog=2&title=A-Second-Video!

That just won’t work in RW sites, the .htaccess file is not evaluated there.

Thanks for sorting me out on that Jannis.

1 Like

No longer needed this step in Pulse 5.0.2