Support » Fixing WordPress » .htaccess mod_rewrite permalinks

  • This maybe a stupide question but my client is pretty firm that they want this doing so I kind of need to find out if its even possible.

    Basically I have a page lets call it ‘page1’ and a child of that page ‘page2’ the url to page2 at present is with permalinks enabled to be a custom structure – /%category%/%postname%/

    What my client is requiring is that page2 sits under page1 in the page navigation but when clicked on navigates to – effectively missing out the parent page title in the url. He also only wants this to happen with 1 specific url not on the whole site.

    First question is…is this possible? Second question is how!?

    I have had a developer friend help me out with some ideas and still no joy, here is the attempt on the .htaccess file:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /beta/
    RewriteRule ^url-i-want-to-write\/?$ /actual-path/to-url
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /beta/index.php [L]
    # END WordPress
    <IfModule mod_security.c>
    <Files async-upload.php>

    RewriteRule ^url-i-want-to-write\/?$ /actual-path/to-url

    Is the line that was added…

    Any help would be greatly appreciated. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘.htaccess mod_rewrite permalinks’ is closed to new replies.