Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: URL of root (homepage) needs /index.php ... !?
Sorry, yes, I made it manually … many years ago when I was innocent and didn’t knew anything … :/
Offline
#14 2013-12-12 14:15:17
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: URL of root (homepage) needs /index.php ... !?
Then change the “Permanent link mode” to “/section/title” and the code to:
<div id="nav">
<ul id="minitabs">
<li><a href="/">Home</a></li>
<li><a href="/visie">Visie</a></li>
<li><a href="/taaltrainingen" class="active">Taaltrainingen</a></li>
<li><a href="/taaltoetsen">Taaltoetsen</a></li>
<li><a href="/inburgeringsexamens">Inburgeringsexamens</a></li>
<li><a href="/opdrachtgevers">Opdrachtgevers</a></li>
<li><a href="/info">Info</a></li>
<li><a href="/nieuws">Nieuws</a></li></ul>
</div>
Note 1: This example is for “taaltrainingen” active.
Note 2: You could make your life easier with txp:section_list.
Last edited by GugUser (2013-12-12 14:15:33)
Offline
Re: URL of root (homepage) needs /index.php ... !?
Thanks GugUser … but that still doesn’t work. It has definitly something to do with the .htaccess file and clean url’s. I’ll will look into it later on. Happily the root is working and that’s fine for now … :)
Offline
Re: URL of root (homepage) needs /index.php ... !?
Hi Joop
Regardless of the url mode, the root should always work unless of course there is a 500 error
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: URL of root (homepage) needs /index.php ... !?
colak wrote:
… the root should always work unless of course there is a 500 error
There was … but it’s gone after upgrading Txp (4.5.5) > www.misterdutch.nl … :)
On the subdirectory > www.misterdutch.nl/new I still have a problem that linking to ‘Taaltoetsen’ (section) doesn’t work.
The link is made of Textile: "Taaltoetsen":taaltoetsen … the .htaccess file is Txp (4.5.5) default … and permanent link modus is /section/title
The host suggests to use something like this in .htaccess:
RewriteEngine On
RewriteBase /
RewriteRule ^([a-zA-Z0-9]+)/$ index.php?page=$1
… if you want to change http://www.domein.tld/index.php?page=articles into http://www.domein.tld/articles/
I can’t check this because I don’t know how to tweak the first string so it spit out e.g. http://www.domein.tld/taaltoetsen/ … !?
(added http:// to create working links ;) -Els)
Last edited by els (2013-12-12 21:37:08)
Offline
#18 2013-12-12 21:33:02
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: URL of root (homepage) needs /index.php ... !?
You are making steps back. Before it was working.
Forget that index.php?stuff. You don’t need it.
Make your navigation with txp:section_list, as I wrote before.
Basically:
<txp:section_list sections=",all,your,needed,sections" />
If “taaltoetsen” is really a section, then it must work.
Offline
#19 2013-12-12 23:22:29
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: URL of root (homepage) needs /index.php ... !?
Ah, and before I forget it: Your "Taaltoetsen":taaltoetsen
should be "Taaltoetsen":/taaltoetsen
.
Offline
Re: URL of root (homepage) needs /index.php ... !?
One night sleep …
No: #RewriteBase /relative/web/path/
Yes: RewriteBase /new
:))
Offline
#21 2013-12-13 19:27:10
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: URL of root (homepage) needs /index.php ... !?
Look this.
Offline
Re: URL of root (homepage) needs /index.php ... !?
GugUser wrote:
… Change in the .htaccess
#RewriteBase /relative/web/path/
toRewriteBase /
or to other real path.
I did try your suggestion at that moment but it didn’t work … why, I don’t know. But thanks for joining in and helping me … :)
Offline
#23 2013-12-13 19:38:38
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: URL of root (homepage) needs /index.php ... !?
The most important: Now it works!
;-)
Offline