Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 02:45 am EST
Geeklog Forums
How works URL Routing
Status: offline
alb3rt
Forum User
Regular Poster
Registered: 10/30/06
Posts: 71
Location:Mexico City
I was excited to see this new feature, however I do not understand its working, I mean ... I figured for example:
When opening
I would show the content of
This happens!, however, does the URL change, I mean in the URL bar I see http: //site_example/staticpages/index.php?Page=@page1 instead of http://site_example/page/page1
What I deduce is a simple redirect, maybe it would be more useful if in addition to the redirect also make the url change. I did this in earlier versions of geeklog through .htaccess.
For example:
Actually it is
And in my .htaccess I added:
In summary, I expected that what I did manually through htaccess could do it through url routing, but it does not seem to work that way.
Kind regards
D Web Studio - www.d-webstudio.net
When opening
Text Formatted Code
http: //site_example/page/page1I would show the content of
Text Formatted Code
http: //site_example/staticpages/index.php?Page=@page1This happens!, however, does the URL change, I mean in the URL bar I see http: //site_example/staticpages/index.php?Page=@page1 instead of http://site_example/page/page1
What I deduce is a simple redirect, maybe it would be more useful if in addition to the redirect also make the url change. I did this in earlier versions of geeklog through .htaccess.
For example:
Text Formatted Code
http://www.uccs.mx/uccs/acerca-deActually it is
Text Formatted Code
http://www.uccs.mx/staticpages/index.php?page=uccs-acerca-de_esAnd in my .htaccess I added:
Text Formatted Code
RewriteRule ^uccs/(.+) /staticpages/index.php?page=uccs-$1_es [L]In summary, I expected that what I did manually through htaccess could do it through url routing, but it does not seem to work that way.
Kind regards
D Web Studio - www.d-webstudio.net
13
20
Quote
Status: offline
Laugh
Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
Yes you can setup a redirect for all staticpages as your example shows. I personally only tested using IIS but it works with Apache as well as long as the rewrite module is enabled. Make sure the configuration URL rewrite and URL Routing are enabled. Click on the ? in The configuration for more information (I included the help links below as well)
https://www.geeklog.net/docs/english/config.html#desc_url_routing
https://www.geeklog.net/docs/english/config.html#url-routing
Let us know if the settings work for you or if you have any tweaks as we can add it to the documentation for the next release.
One of the Geeklog Core Developers.
https://www.geeklog.net/docs/english/config.html#desc_url_routing
https://www.geeklog.net/docs/english/config.html#url-routing
Let us know if the settings work for you or if you have any tweaks as we can add it to the documentation for the next release.
One of the Geeklog Core Developers.
17
11
Quote
All times are EST. The time is now 02:45 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content