IT.COM

Search Engine friendly URLs

Spaceship Spaceship
Watch

john888

Established Member
Impact
247
I have Apache WordPress domain name site.

I have created Name Server redirect URL’s for my domain names such as:

https:/mywebsite.com/domain/?=domain-name1.com
https:/mywebsite.com/domain/?=domain-name2.com
etc..

Mywebsite.com is a WordPress site and page “domain” will use the URL parameter ?=domain-name1 and dynamically place “domain-name1 is for sale” on the page.

I would like to have Search Engine friendly URLs such as:

https:/mywebsite.com/domain/domain-name1/

but use one page called “domain” with dynamic scripting that uses the parameter “domain-name1”

I have tried using WordPress Permalink Settings to clean up the page URL, but I believe the Permalink Settings are only for cleaning up the WordPress database generated URLs.

Is there any htaccess mod rewrite code that will do the trick?

Thanks.
 
1
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
1
•••
I have Apache WordPress domain name site.

I have created Name Server redirect URL’s for my domain names such as:

https:/mywebsite.com/domain/?=domain-name1.com
https:/mywebsite.com/domain/?=domain-name2.com
etc..

Mywebsite.com is a WordPress site and page “domain” will use the URL parameter ?=domain-name1 and dynamically place “domain-name1 is for sale” on the page.

I would like to have Search Engine friendly URLs such as:

https:/mywebsite.com/domain/domain-name1/

but use one page called “domain” with dynamic scripting that uses the parameter “domain-name1”

I have tried using WordPress Permalink Settings to clean up the page URL, but I believe the Permalink Settings are only for cleaning up the WordPress database generated URLs.

Is there any htaccess mod rewrite code that will do the trick?

Thanks.
Yes such htaccess directives do exist. Posting it here might compromise the page.

But first correct the error. You have syntax (error) in the URI:
https:/mywebsite.com/domain/?=domain-name1.com

Variable name missing. it should be:
https:/mywebsite.com/domain/?varibalename=domain-name1.com

Hope this helps.
 
Last edited:
1
•••
Thanks. What is best a 301 or 302 redirect in this case? I am still not sure if Chrome is blocking some traffic since "mywebsite.com" has SSH but not the domains being redirected. This may take multiple domain aliases to individual pages to please Google.
 
1
•••
Thanks. What is best a 301 or 302 redirect in this case? I am still not sure if Chrome is blocking some traffic since "mywebsite.com" has SSH but not the domains being redirected. This may take multiple domain aliases to individual pages to please Google.
301 is permanent, 302 is temporary. Your choice.
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back