Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Rewrite Rules for PageBuilder Pages

Quote Reply
Rewrite Rules for PageBuilder Pages
Hello,
I have my dynamically built pages from PageBuilder Plugin located in "corporate" (such as: feedback.htm, about_us.htm...etc).
I am calling them ..../cgi-bin/scripts/page.cgi?page.about_us.htm
My question:
How will I write a rule for these pages to allow me to call the pages in this way:
../corporate/about_us.htm

Thanks
Mark
Quote Reply
Re: [Mark2] Rewrite Rules for PageBuilder Pages In reply to
Code:
RewriteRule ^/corporate/about_us.htm$ /cgi-bin/scripts/page.cgi?page=about_us [L]

That should do the trick Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Rewrite Rules for PageBuilder Pages In reply to
That works, but I still have this dilemma:

In the template code, I have the following link to call "about_us" page:
Code:
<a href="<%config.db_cgi_url%>/page.cgi?page=about_us">About us</a>

Which gets translated in the dynamic web page like this:
Code:
.../cgi-bin/scripts/page.cgi?page=aboutus;d=1">About us</a>

The directory "corporate" is specified in the "BUILD DIRECTORY" of PageBuilder mod.

Now, if I click on "About us" in the dynamic page, I still get forwarded to :
Code:
.../cgi-bin/scripts/page.cgi?page=about_us;d=1

Instead, I want i to forward to:
Code:
.../corporate/about_us.htm

Please note:
If I type in the browser:
Code:
.../corporate/about_us.htm
or
Code:
.../about_us.htm
or
Code:
.../cgi-bin/scripts/page.cgi?page=about_us;d=1

then, I get the same page loaded (about_us.htm) which is that is what I want, but I want it to show in the webpage as:
Code:
.../corporate/about_us.htm
?

Thank you again in advance..
Mark
Quote Reply
Re: [Mark2] Rewrite Rules for PageBuilder Pages In reply to
Why not just change the location of those specific pages, to "pages" instead of "corportate" ?

So basically place the rewrite rule with "corporate" with "pages", and then update your links

That should stop it converting them Smile

Cheeers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Rewrite Rules for PageBuilder Pages In reply to
I can not replace "corporate" with "pages" because these pages existed statically for over 10 years (search engine are referring to them directly in some cases.. so I do not want to lose traffic).


All I want is to have the URLs of PageBuilder pages to look like static URLs ...

Do I need to change the links of the pagebuilder pages in the templates to be static URLs?


means, instead of:

Code:
<a href="<%config.db_cgi_url%>/page.cgi?page=about_us">About us</a>
do it this way?

Code:
<a href="/corporate/about_us.htm">About us</a>
?



or do I have to change: <%config.db_cgi_url%> to something else.. build_root_url?


Thanks
Mark




Quote Reply
Re: [Mark2] Rewrite Rules for PageBuilder Pages In reply to
Yeah changing them to relative URL should also work :)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates