In wordpress I want to add the Get parameters for some pages
currently my paramlink settings are are to example.com/pagename/
what I want do is example.com/pagename?a=1&b=2 add these two parameters only in pagename page
I tried to do like this in my .htacess
RewriteRule ^pagename/([^/]+)$ pagename?a=1&b=2
But this is not working
is there any way I can do it in my wordpress website
I am using wordpress 5.1
Use add_query_arg functionalities to do this, for ref - code doc
Related
I added a page in wordpress. Wordpress created a url like
https://mywebsite.com/page-title
but I want to change this url like https://mywebsite.com/se/page-title
My Permalink Settings shows https://mywebsite.com/sample-post/
and website is already indexed on google so I can't change my paramlink setting.
I also tried with htaccess and also from wordpress add_rewrite_rule() but no result is coming.
Any help how can I do this?
The simplest way to make your page url like www.example.com/se/se1 instead of www.example.com/se1 is to create page se and se1 make as child page of se.
With this option you'll saved your wordpress website permalink structure, you'll in not need to change your other pages redirects for google indexing
Hi am facing an issue with pagination on Opencart when SEO URLs in setting is enabled.
I am using oepncart v2.1.x. below option is used for SEO
And to make URLs SEO i make entry for product SEO URL while adding product like as below
But with this pagination is not working at all. I am getting URL directly as
http://example.com/dfgfd-dfgfdg
and when i disable SEO option then i get URL as
http://example.com/index.php?route=product/category&path=61_71&page=1
It is woking when SEO is disabled. Any ideas please?
I have installed extenstion super_seo.xml by orestius to make other URLs SEO like registration and login URLs.
I am posting this as answer as it freaked me to hell from last 2-3 days. I have figured out a code and can be made as below as a change:
Only tested on OC 2.1.x
find catalog/controller/common/seo_url.php
Use code mentioned here Here {if link does not work in future, feel free to mail me for same}
open index.php in root folder and make entry
$controller->addPreAction(new Action('common/seo_url'));
Go to your DB and find table url_alias and make entry in table as in below image
By following above 4 steps everything works like charm and Pagination works perfectly now even with SEO URLs.
Eg. Url will look like as below:
http://example.com/index.php?route=account/logout
will become http://example.com/logout
and Pagination will be
http://example.com/example-collection?page=2
I need a help from htaccess expertise
Need to change url to make it user friendly Here is my url of site for example
http://www.example.com/the-collection/#the-colection1/
Here is my wordpress page http://www.example.com/the-collection
For this page am using 'shortcode' of plugin that automatic add this collection1 with # tag
Here is also pagination come with this plugin then url seems link this
http://www.example.com/the-collection/#the-colection1/page1
What I need I want to make my url like
http://www.example.com/the-collection/page1
I want to remove that #collection1 (only want to remove not replace with any other text because that i can do from backend easily)
I have a custom post typed called Uploads on my WP site which (using v3.1) has an index archive at this url: http://domain.com/uploads
Now because this is created automatically by WordPress and not using a page like in previous versions of WP I am unable to create a sub-page like so: http://domain.com/uploads/my-page
How can I create a page and change it's url to fake it so it looks a child page of uploads?
Thanks
If you have just one page ... try creating your own plugin:
This is for rewrite rule
This is for rewrite params
And do not forget to disable Canonical redirection
This is faster then searching for working solution ... just if you have 1,2,3 custom urls.
This worked for me: http://wordpress.org/extend/plugins/custom-permalinks/
Did you try the url edit function, in edit page?
I'm running a wordpress installation on the root dir of my website test.com
Wordpress is using url's like: test.com/information/ and I also added some custom parameters like: test.com/information/?about=product
I tried to use the mod-rewrite generator at http://www.generateit.net/mod-rewrite/ to change my custom urls to test.com/information/about/product but keep receiving a wordpress 404 error.
Is there a solution to my problem?
All answers wrong. Login to admin area. On the left menu, under settings find permalinks. You can choose or add proper settings there.
I agree with #borayeris - Wordpress has it's own permalinks page under Settings - use that.
If you are already using pretty permalinks, make an about page then make it the parent page of all your product pages.
Or use the rule:
RewriteRule ^information/about/([^/]+)/?$ information/?about=$1 [L,NC]