You’ll need to do some .htaccess-fu to get what you’re proposing to work.
RewriteCond $1 ^/labs/(.+)
RewriteRule ^/labs/(.*)$ /labs-folder/$1 [L]
This isn’t tested yet but it if you put it before the wordpress rules in your htaccess file it will remap urls that begin with /labs/ to /labs-folder/ but not if the url is just “/labs/” on its own.
Let me know if it doesn’t work and I’ll debug it with you.
You can replace “labs-folder” with any folder name you choose but essentially a url like:
http://example.com/labs/project1/
Will really be looking here:
http://example.com/labs-folder/project1/
Related Posts:
- Static files or dynamic WP pages for “static content”?
- WordPress page not taking precedence over server directory
- redirect index.html inside folder to wordpress page of same name
- Custom folder for wordpress page templates
- Share a folder with files
- Have subdirectory name act as $_GET or $_POST data
- Directory location of new page
- Need pages with same names in multiple subdirectories
- How to configure WordPress to handle 75,000 pages?
- How to disable posts and use pages only
- multi page password protection
- Create a “Dummy” parent page for a hierarchy in page listing?
- Some pages are missing from the Parent Page select in the Editor
- Set Session Time Limit for Password Protected Posts
- Custom Search Page Pagination Not Working
- How to count current user’s pages?
- Dynamic content in a static page
- WordPress protected Pages
- How To Display Date (/Time/Author) In pages?
- Displaying Child pages of the current page in post format and their thumbnails (featured image)?
- How do I create multiple page while active a theme
- Child page from 2 different parent pages
- Redirect “Sorry, you are not allowed to access this page.” to Home
- select a private page as parent for another private page
- Can I set a timer for pages to be published?
- Add a Menu Link (to a WordPress Page) in the Admin Menu/Sidebar
- Too Many Pages in WordPress? 2013
- How to use the same code for multiple pages?
- How can I automatically add child pages to pages in a WP menu?
- Job Manager plugin help?
- htaccess modify headers IF url ends with “news”
- How to change only the home page / front page url on wordpress
- How get get list of pages in ajax search
- Give access to a simple .html file to users that bought a specific ‘digital product’
- How to make tag post listing page working?
- Admin pages, edit notes of the title of posts and pages
- Unique page URL redirect to file_get_contents() at domain
- Cannot add a class to h2 tag
- Redirect page to default subpage
- check first and last child pages wordpress
- Special Character Appearing in my WordPress Pages Content
- WordPress pages creation work distribution & then combining – Localhost XAMPP
- Prioritize visible content – Page speed issue on Google insights
- How can I check user capability when a page loads (via functions.php)?
- Add a static page that links to homepage
- How to have a next page for post?
- Can I change the “Home” text in the menu?
- Bad pages redirection
- Remove_filter (‘the_content’, ‘wpautop’) only pages
- Weebly Migration to WordPress [closed]
- Need to create a custom page on a website
- How To Render Shortcode In AJAX Response?
- Do I have to widgetize my pages?
- Page templates in subdirectories and auto generator
- Get rid of “comment” field on non-blog pages [duplicate]
- Password Protect Pages Not Working
- Can I connect a page to a taxonomy?
- How to control display of page lists on sidebar that doesn’t have childrens
- wp_nav_menu: output featured image of each page listing
- Is there a template tag/function for getting the URL (or slug or name or ID) of the blog page when using a “static” front page
- Problems in creating a static site with WordPress
- Creating new page/tab in groups section not working! [closed]
- Change displayed “page name” to distinguish multiple pages with the same title
- add title to widgets of wordpress
- Custom user tables not working after migration
- remove “Edit” from select pages
- How to transfer a site to hosting?
- Add custom action to the page listing screen
- How can a .css file be applied to a virtual page?
- WordPress blog posts template bug [closed]
- Checkboxes to automatically create pages when I activate a theme
- Cannot update page – with too many characters?
- Is it possible to embedd this web app to my website [duplicate]
- Using external DB within wordpress
- Cannot use old slug – it just 301s to site home page
- Display inner pages like posts.[Like how post excerpt works]
- include exception inside theme for empty widget area
- My pages disappeared from the list
- Pre-populating new Page creation with shortcodes
- How to display time when page is created and edited
- Loading internal page
- Firing page_publish where page is child page
- Add text to the bottom of particular pages
- Access wordpress pages using a self signed shared ssl
- Page loads all pages of the image gallery with pagination
- Group Pages based on Parent in Admin Area
- Google indexed pages for one page site
- How to exclude page in pages module
- get id custom tables on current page
- static page with buton that opens collect email form
- Parent for a single (single.php)
- Multiple WordPress Pages
- How to create an user defined page?
- How can one get page by pagename if it is a child page?
- Archive with specific keyword by category sorted by date
- Is it possible to keep the page title from actually appearing at the top of the page?
- Missing page on wordpress “Pages” dashboard [closed]
- Ask for template when adding a new page
- How to view front-end of WordPress website, using Atom?
- Custom template is not showing up in templates dropdown list after re-naming it