Created a page and the link is like the following


need to be like the following


I need this structure only for this page .So i don't want to change the current permalink structure.Is there any other option to achieve this?

Can anyone help please.

  • Can you use .htaccess for this?
    – M-R
    Jan 30, 2015 at 14:34
  • @M-R yes i can,but i don't have much idea about .htaccess
    – AVM
    Jan 30, 2015 at 14:42
  • What have you coded so far? Jan 31, 2015 at 16:39
  • @BradDalton Tried m-r's answer but no luck:(
    – AVM
    Jan 31, 2015 at 18:55
  • 1
    What have YOU coded so far? What work have you done so far? Feb 1, 2015 at 9:12

1 Answer 1


Read on htaccess. You can try this,

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^phones$ /?page_id=1081 [L]

  • sorry didn't worked :( my wordpress installed path is` /var/www/html/demo`.
    – AVM
    Jan 30, 2015 at 19:16
  • Check the updated. Its tested and working. I would recommend to read about htaccess as its an awesome thing to work on. :)
    – M-R
    Feb 2, 2015 at 9:34
  • 2
    On my server /etc/httpd/conf/httpd.conf file, 'AllowOverride' was set to 'None' changed that to 'All' and your code worked.Thanks!!
    – AVM
    Feb 3, 2015 at 12:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.