In my wordpress site url came the following format.
http://localhost/wordpress/?page_id=23
But i want it will come
http://localhost/wordpress.contact.php
this format.
please help me
Under Settings->Permalinks you can edit the structure of your URLs, but you won't be able to have just a dot between wordpress and the page name without using some .htaccess tricks. To have something like /post-name.php/ you would need:
/%postname%.php/
In the custom structure box on the settings page.
Related
I want to add parent to posts in wordpress, for that I need to change the permalinks, but I am not able to figure it out.
for e.g. if the current url is www.abcd.com/postname
I want it like this, www.abcd.com/posts/postname
Thank you in advance
First, you need to visit the Settings » Permalinks page in your WordPress admin. There you need to click on the ‘custom structure’ option under the common settings area.
Next, you need to add /%category%/%postname%/ in the field next to the custom structure.
I have used /%category%/ just as an example. Change it accordingly.
I have a page in which I want to display dynamic content.
Currently it works like:
site.com/c-page.php?brand=hp
How can I call it like:
site.com/brand/hp
Is it necessary to write a rule on htaccess?
Thanks.
If you're using Wordpress, You may select the Post name structure for the following structure. This will automatically change in your .htaccess file
Hope this will helps you.
For more information,
change WordPress permalink structure
My current blog is www.bostonsbettah.com and my current permalink set-up is http://www.bostonsbettah.com/%category%/%postname%/
Now, in a perfect world, the a post should appear as something like www.bostonsbettah.com/bostonbruins/boston-bruins-1st-line-playing-like-a-1st-line/ and that should take you to the post. When I click on the page title at the top such as "Bruins Blog", it should take me to www.bostonsbettah.com/bostonbruins/ that has an archive of all posts categorized as "Bruins". Currently, however, every page besides the home page is a 404 error.
Now I know I can fix something in the .htaccess file and I know how to access it, but I don't want to mess with it as I don't know how to code. Is there a fix someone can provide that will allow me to fix my website? Thank you in advance.
Never,ever,ever put your blog URL inside custom permalink structure!. You must use one of the structure tags, or a combination of tags only.
Read the documentation first.
I am new to wordpress so trying to figure out something which I cannot and asking you guys. Please help if you know.
I have issues with URL formation in Wordpress. I want to show articles' category name in URL, so I am using Permlinks -> custom structure which is like /%category%/%postname%.htm I then pasted code given by WP in .htaccess file. So now articles use http://mysite/category1/article1.htm URL.
But then on index.php any links inside article shows URL ashttp://mysite/article2.htm and hence 404. I am using >Article2 inside a post. If I open http://mysite/category1/article1.htm then above link will show as http://mysite/category2/article2.htm which is the correct URL.
Can someone plese help me figure out correct way? Using above configuration, it works fine for all links when open individual posts but only main index.php does not include category name. Just to note, URLs in Recent Posts also show correct URL.
If the links are hardcoded inside the article itself, there's nothing inside WordPress PHP or settings to change. You just need to edit the post content and update the HTML link URLs using the new permalink structure, within Posts and/or Pages tab.
You can also try a plugin like Redirection which will redirect old post permalinks to the new (correct) permalink format.
http://wordpress.org/plugins/redirection/
maybe anybody know why wordpress generate link like this: portfolio/all/#.UHSbFy5mJIk
I make bold the permalink strange place
I have no changes in wordpress core
I'm going to assume you have a sharing plugin enabled that is appending the extra stuff to your URL. This is tracking data to let you know how your links are being shared.