simplified link without /page/

Hey all ye Dophinians,

 

Spinning my wheels again. Everything I attempt to do here takes about 10 times longer than I would expect. LOL. But it's a learning experience, so it's fine.

 

OK, the deeper a page is nested in server folders or directories, the less relevance it receives from some search engines. So I am told. In my ignorance, I cannot see the wisdom of /m/ and /page/ in so many of the foundational links of Dolphin. But never mind that...

 

Can somebody please explain how I can make a link such as "my-example.com/page/books" to simply be reduced to "my-example.com/books"?

 

I was unable to do this in my site Control Panel which does allow for redirects under certain conditions. Obviously, this is a page created in "Pagebuilder" and must meet all those protocols in order to be edited or reformatted. I would suppose...

 

I need a neat, simple link for the footer on many documents, as it will hopefully be remembered and easily accessed with the greatest of ease.

 

Help me, Rhonda. Much thanks in advance!

Quote · 26 Nov 2016

https://mediatemple.net/community/products/dv/204643270/using-htaccess-rewrite-rules

 

Basically in .htaccess...

 

RewriteRule ^books/$ page/books [QSA, L]

 

http://boonexpert.com
Quote · 26 Nov 2016

Good. Here is the line added in the .htaccess file when I created the books page in "Pagebuilder":

 

       RewriteRule ^books/(.*)$ page/books/$1 [QSA,L]

 

I tried adding your line to it and also replacing my line with yours. Both ideas resulted in a 500 error.

 

Any more ideas? A cache that needs to be cleaned? Right rewrite rule but in the wrong place of the access file?

Quote · 26 Nov 2016

Most likely you've put it in a wrong place. Try to place it somewhere between similar lines which begins with RewriteRule. The line looks ok.

You may try to put ([^./]+) instead of (.*) as well.

If still no luck, please write me on boonexpert@gmail.com and I'll try to help you.

http://boonexpert.com
Quote · 27 Nov 2016

Boonexpert, thank YOU for reaching out to help me today and for aiming me in the right direction! You are truly a credit to this organization. This did it for me. It seems to work fine:

 

RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$

RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$

RewriteRule ^books\/?$ "http\:\/\/my-example\.org\/page\/books" [R=301,L]

Quote · 27 Nov 2016
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.