I have a WordPress website with many retailer account and all of them can view their profile on their own subdomain.
Like retailer 'aaa' -> aaa.domain.com
I want this aaa.domain.com to match to a page - www.domain.com/page and get the content without changing the url.
Earlier it was working but after auto upgradation of WordPress ver., htaccess got modified all the rules are erased.
please help me with this.
Regards.
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
I'm working on my first project with opencart.
I activated seo friendly urls in setting. Some pages such as about-us are fine. but seo friendly urls don't work for checkout, cart, register,... pages.
For example http://onelight.ir/about-us is ok, but http://onelight.ir/register shows an 404 page and I must use the long url.
I checked my database. There's no record for register on oc_url_alias table but there's a row for about-us keyword, with value information_id=4 for query.
I checked catalog/controller/common path. There's no seo_url.php file there if that helps.
my opencart version: 2.3.0.2
Thanks a lot for your time, and sorry for my poor english.
After struggling a lot this is how it works:
I used this answer and this link. BUT seo_url.php file is in catalog/controller/startup directory.
I have my own domain
www.mxm.com (just an example)
and i create other page with this url:
www.mxm.com/testpage1
in the carpet testpage1 i installed wordpress and i redirect to
www.testpage1.com in my cpanel.
So now i can enter www.testpage1.com with no problem but when i click in other menu item like blog the url change to:
www.mxm.com/testpage1/blog
I want to know how to change
www.mxm.com/textpage1/blog
I want to get
www.testpage1.com/blog
I was reading something about editing wp-config.php or wp-setting.php but i didn't get it.
There is a way? I'm kind of newbie using wordpress. Thanks btw.
I finally made it!
I just edit the .htaccess and the table with credentials on my DB and it works.
Other way i found was changing it with the dashboard of Wordpress. In settings there is a field where u can change the address of wordpress and for the website.
This two urls help me a lot:
https://wordpress.org/support/topic/problem-moving-wp-now-only-the-home-page-works
https://wordpress.org/support/topic/redirect-a-domain-to-my-wordpress-url
I have a website where there are profiles. I have changed the .htaccess so it give me a nice URL back, for example.
SEO unfriendly URL:
www.domain.com/index.php?page_id=216&acctype=trainer&stname=name
of trainer (with - instead of spaces).
Now I managed to get it like the following:
www.domain.com/profiel/trainer/name-of-trainer
My .htaccess looks like this:
RewriteRule ^profiel/([^/]*)/([^/]*)$ index.php?page_id=216&acctype=$1&stname=$2 [L]
All I get is that the page is not found.
I have a page in WordPress (profiel) and have a template linked to that page, could it be that the acctype (type of account), is making it that the template is not being found?
Hope that the explanation is clear, if not, please ask.
Hope some one can help.
I have setup the permalinks correctly, because the url is showing, it only doesn't show the correct template, it should show more detailed info about that specific user.
I am wondering what is going wrong, have no clue at this tried.
The wordpress post and page urls are stored into database too.
When you change your url rewrite on .htaccess that changes base redirection only. You need to change permalink on Settings > Permalink Settings > Select your url pattern By using this the wordpress automatically change .htaccess and all post url and page url on database to.
I don't think you need to change in your .htaccess file to make the URL SEO friendly. Just login the admin panel
Settings > Permalink Settings > Select Post Name from the given options
Using this way you can make URL SEO friendly in WordPress.
I have a one website in wordpress I used in this custom table, In this there is so many records, so for a see single record I used this url http://www.example.com/view-pitch/?pitchid=36 , but I want to make it seo friendly url like this http://www.example.com/view-pitch/single-record-title.
Can you help me please?
Thanks.
in your site login to admin and goto the setting -> permalink and Select the post name
And Save Change