category alias
category alias
/index.php?alias - don't work...
Re: category alias
Some basic questions:oops wrote:/index.php?alias - don't work...
1. Did you already insert a structure level under index.php and give it a category title and then alias the category as.... "alias" and send the category data ?
2. And have you inserted a link somewhere in the article content that when clicked upon does not take you there?
3. Or are you entering the link into your browser address window and getting just the index page?
4. Or have you entered a [ID string]alias[/ID] somewhere that is giving you this symptom?
It should work if you have performed the steps in question #1
Re: category alias
very basic questionsDeXXus wrote:Some basic questions:oops wrote:/index.php?alias - don't work...
1. Did you already insert a structure level under index.php and give it a category title and then alias the category as.... "alias" and send the category data ?
2. And have you inserted a link somewhere in the article content that when clicked upon does not take you there?
3. Or are you entering the link into your browser address window and getting just the index page?
4. Or have you entered a [ID string]alias[/ID] somewhere that is giving you this symptom?
It should work if you have performed the steps in question #1
it work on my local machine, but not work on my server
Re: category alias
Believe me... with just this query:
there will not be much help offeredoops wrote:/index.php?alias - don't work...
I've got the same problem. The reason is, that is nil, if "?alias" without a "=" is used. However, even if a "=" - like "?alias=" - is used, the alias-feature in content.func.inc.php does not work. By the way, I'm using PHP 4.2.1 as well as 4.2.2. So, any ideas?
Code: Select all
sizeof($_GET)
- Oliver Georgi
- Site Admin
- Posts: 9907
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
It should be possible to change that. Do this. Check if $_SERVER["QUERY_STRING"] is not empty and test this code
in content.func.inc.php below line 52 try this
to
Oliver
in content.func.inc.php below line 52 try this
Code: Select all
if(sizeof($_GET)) {
foreach($_GET as $key => $value) {
$alias = trim($key);
break;
}
Code: Select all
if(trim($_SERVER['QUERY_STRING'])) {
$query = explode("&", trim($_SERVER['QUERY_STRING']));
$alias = $query[0];
- Oliver Georgi
- Site Admin
- Posts: 9907
- Joined: Fri 3. Oct 2003, 22:22
- Contact: