question about page_add bug solving with mod_rewrite enabled
pieter |
|
---|---|
In menuslots you can change it yourself by hand. Link you did before.
Menuslots are not generated automatically. ... can we help you ...
|
donP |
|
---|---|
Yes, for menu slots it's quite simple, but I think pages and forum post (othewise parsing process) would be automatic. And the problem returns for sitemap (I'm actually using Tefra GenSiteMap)...
in [color=#729FCF][b]BLUES[/b][/color] I trust
|
Trustmaster |
|
---|---|
I can make a plugin to rewrite relative links in pages and posts, but it won't be recommended for sites which don't already have many of old-way urls in posts.
Added 17 minutes later: I see the problem about your plugin now. It uses $out['uri']: $area_location = substr($out['uri'], 0, strpos($out['uri'], '.')); The more correct way to get current area is: global $z;
$area_location = $z; May the Source be with you!
|
|
This post was edited by Trustmaster (2010-02-12 04:27, 14 years ago) |
donP |
|
---|---|
Seems to work now... Thanks
What about if I would have a different rule for one category, like this: list.php?c=Category1 ==> http://Category1.mydomain.net list.php?c=subcategory1 ==> http://Category1.mydomain.net/subcategory1 list.php?c=subsubcategory1 ==> http://Category1.mydomain.net/subcategory1/subsubcategory1 But only for some categories (living the other rules like now, with the intent of creating a fake subdomain for one or two categories of my website). Added 1 day later: Nobody here? in [color=#729FCF][b]BLUES[/b][/color] I trust
|
|
This post was edited by donP (2010-03-02 08:31, 14 years ago) |
Trustmaster |
|
---|---|
You need to modify list_url_structure() in functions.custom.php and add some logic checking $args['c'] and returning absolute urls for your subdomain categories.
May the Source be with you!
|
Trustmaster |
|
---|---|
Your domain zone should be configured to forward *.mysite.com to the main site first, otherwise such "fake" subdomains won't work.
May the Source be with you!
|
donP |
|
---|---|
And what have I to do to configure my domainzone to make working those "fake" subdomains?
Have I to contact my hosting Provider or is it a trick I can personally do (by cPanel or htacces)? in [color=#729FCF][b]BLUES[/b][/color] I trust
|
Trustmaster |
|
---|---|
It should be provided by your domain registrar or hosting control panel. You may contact your hosting support asking how you make generic subdomains to redirect to your main site.
May the Source be with you!
|
donP |
|
---|---|
My Server is already capable to redirect http://sangelo.net to http://www.sangelo.net
Is it a good sign in that sense? in [color=#729FCF][b]BLUES[/b][/color] I trust
|
Trustmaster |
|
---|---|
www is a very usual configuration, but you need *
May the Source be with you!
|
GHengeveld |
|
---|---|
Most registrars provide a control panel for DNS settings. cPanel has it also, but this is often disabled by the host. You have to add an A record for *.sangelo.net => server IP. Alternatively, a CNAME will probably work as well: *.sangelo.net => sangelo.net
|
donP |
|
---|---|
I've created a CNAME Thank you Koradhil (ar you back to Cotonti? I'd hope this).
Now every word I write in url as a third level domain (e.g. http://sport.sangelo.net) gives me the home page of my website. I think this is the right way, no? Now, considering I'm not a good script coder, could anyone help me to rewrite Trustmaster function.custom.php and .htaccess rules to have the first level category of page strucrture as the name of the third level domain and not the first subfolder like in the actual solution? Like this: Instead of (actual method): http://www.mysite.net/list.php?c=cat1 ==> http://www.mysite.net/cat1/ http://www.mysite.net/list.php?c=subcat1 ==> http://www.mysite.net/cat1/subcat1/ http://www.mysite.net/list.php?c=subsubcat1 ==> http://www.mysite.net/cat1/subcat1/subsubcat1/ ... like this: http://www.mysite.net/list.php?c=cat1 ==> http://cat1.mysite.net http://www.mysite.net/list.php?c=subcat1 ==> http://cat1.mysite.net/subcat1/ http://www.mysite.net/list.php?c=subsubcat1 ==> http://cat1.mysite.net/subcat1/subsubcat1/ ... Is it possible? in [color=#729FCF][b]BLUES[/b][/color] I trust
|
tensh |
|
---|---|
# donP : Now every word I write in url as a third level domain (e.g. http://sport.sangelo.net) gives me the home page of my website. I think this is the right way, no? It's quite normal in some webhost configurations even without htaccess, I think. |
donP |
|
---|---|
Not mine
Added 20 hours 9 minutes later: Seems to be a too complicated mission also for our good coders... in [color=#729FCF][b]BLUES[/b][/color] I trust
|
|
This post was edited by donP (2010-03-06 07:53, 14 years ago) |