.htaccess mod_rewrite permalinks (3 posts)

  1. rob0210
    Posted 7 years ago #

    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 http://www.url.com/page1/page2 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 - http://www.url.com/page2 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.

  2. rob0210
    Posted 7 years ago #


  3. rob0210
    Posted 7 years ago #

    Any one please help on this? Still cant get a solution...

Topic Closed

This topic has been closed to new replies.

About this Topic