www.mysite/custompagename

I would like to create a page like this www.mysite/custompagename and not www.mysite/page/custompagename. I had found a topic in the forums that addressed this point but I can't find it anymore. Can someone give me a link or advise how to do this. Thanx in advance.

Quote · 6 May 2010

f.e. you could insert this in your .htaccess in the root for each page

RewriteRule ^custompagename.html page/custompagename [QSA,L]

ue30 Mods - http://www.boonex.com/market/posts/ue30
Quote · 6 May 2010

Just edit this line in your .htaccess file:

RewriteRule ^page/(.*)$  viewPage.php?ID=$1 [QSA,L]

To this:

RewriteRule ^/(.*)$  viewPage.php?ID=$1 [QSA,L]

Have fun.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 6 May 2010

Just edit this line in your .htaccess file:

RewriteRule ^page/(.*)$  viewPage.php?ID=$1 [QSA,L]

To this:

RewriteRule ^/(.*)$  viewPage.php?ID=$1 [QSA,L]

Have fun.

or like that;)

ue30 Mods - http://www.boonex.com/market/posts/ue30
Quote · 6 May 2010

f.e. you could insert this in your .htaccess in the root for each page

RewriteRule ^custompagename.html page/custompagename [QSA,L]

Or, like that. Wink

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 6 May 2010

@ Magnussoft

 

What about groups, or in this case the Bars Module. The current group or a Bars URL displays as http://yourdomain.com/m/bars/view/Bar-Name and I would like it to be http://yourdomain.com/Bar-Name

Is this possible with an .htaccess rewrite?

 

Quote · 31 May 2010

Commonly - yes, but you can have just one rule:

RewriteRule ^/(.*)$  viewPage.php?ID=$1 [QSA,L]

so result page will or profiles.php or viewPage.php or some another page. You can`t keep many cases.

Quote · 31 May 2010
 
 
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.