Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Single-gallery.php - permalinks - redirect

Hello I need some help please with my permalinks to my single-gallery.php file. When the link is : mywebsite/gallery/first-project/ - Failed to open page… When I open the custom post from the gallery tab in wp-admin: the link that shows in the browser is : http://mywebsite/gallery%20/first-project/... Do I have to set another redirect rule in my htaccess file - if yes - then what?

2 Answers

Robert Russell
Robert Russell
8,958 Points

%20 is the space symbol (" ") so the link showing is http://mywebsite/gallery /first-project/... so whenever you named that gallery address in your permalink you added a space by accident I believe. Remove that space and you should be fine.

Thank you Robert - I've just figured it out too :)