0

I want to remove the query string from the wordpress url. URL: http://domain.com/our-homes-storey/?storey=40 I want to change that url from the below url: http://domain.com/our-homes-storey/locationname

3
  • Just check your permalink setting. there is no need for htaccess rules Commented Aug 14, 2014 at 12:00
  • 1
    In back-end (admin panel) you have to set permalink to post name in settings tab. it will automatically create .htaccess for you Commented Aug 14, 2014 at 12:03
  • This is not a page url. This is custom url. So I want to change that url. Commented Aug 14, 2014 at 12:05

1 Answer 1

1

Go to Wordpress Admin - Settings - Permalinks

And set your permalinks to be one of the formats you want, or create your own.

Sign up to request clarification or add additional context in comments.

6 Comments

This is not a page url. This is custom url. So I want to change that url.
You need to make your question a bit more clearer. I don't understand what you're trying to do now. What's generating the store parameter? Can we see some code?
Please find the link: melbournebuilders.demo.netsmartz.us/our-homes and click on the particular storey after that generate the url: melbournebuilders.demo.netsmartz.us/our-homes-storey/?storey=40. So i want to change the url: melbournebuilders.demo.netsmartz.us/our-homes-storey/…
What's generating the store parameter? Can we see the code that's generating those links?
<option value="<?php echo add_query_arg( 'storey',$hmrow->home_id, get_permalink(295) ); ?>"> <?php echo $hmrow->home_name;?></option>
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.