Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Switching URLS
Hi, I am trying to change the url to a site i built on ps.accarter.com to psbooks.org – both urls publish from the same folder. Simply changing the url in preferences works only when I switch to using messy urls. Does anyone know why this is? Is there somewhere else I have to change the site url?
Thank you for your help!
Best,
Allison
Offline
#2 2007-11-09 20:53:38
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Switching URLS
What does you .htaccess look like?
Offline
Re: Switching URLS
It looks like this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
clean urls worked on the old url…
thanks!!
Offline
#4 2007-11-09 21:19:35
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Switching URLS
Ok so .htaccess is not the problem. Can you post the diagnostics?
Normally when moving a site you’d have to change config.php as well, but if I understand correctly this is not a move, right?
Offline
Re: Switching URLS
Right – it’s not a move, just a change of the url where it’s published.
Diagnostics looks like this: all checks are passed.
Textpattern version: 4.0.5 (r2466)
Last Update: 2007-11-03 18:48:22/2007-11-03 18:45:57
Document root: /home/accarter/public_html//ps (/home/accarter/public_html/ps)
$path_to_site: /home/accarter/public_html/ps
Textpattern path: /home/accarter/public_html/ps/textpattern
Permanent link mode: messy
Temporary directory path: /tmp
Site URL: psbooks.org
PHP version: 4.4.7
Register globals: 1
GD Image Library: bundled (2.0.28 compatible); supported formats: GIF, JPG, PNG.
Server Local Time: 2007-11-09 21:22:47
MySQL: 4.1.22-standard
Locale: en_GB.UTF-8
Server: Apache
Apache version: Apache
PHP Server API: apache
RFC 2616 headers:
Server OS: Linux 2.6.7
Active plugins: wet_link-0.7, rss_admin_db_manager-4.3
.htaccess file contents:
————————————
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
————————————
Last edited by accarter (2007-11-09 21:24:14)
Offline
#6 2007-11-09 21:31:13
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Switching URLS
1. I see a double slash in Document root, don’t know if that is relevant.
2. Actually I meant diagnostics when permanent link mode is set to clean urls, so we can see if there are any error messages in diagnostics.
Offline
Re: Switching URLS
of course – stupid me. again, thank you for your help .
when I change the prefs I get the Clean URL Test Failed warning.
diagnostics:
Textpattern version: 4.0.5 (r2466)
Last Update: 2007-11-03 18:48:22/2007-11-03 18:45:57
Document root: /home/accarter/public_html//ps (/home/accarter/public_html/ps)
$path_to_site: /home/accarter/public_html/ps
Textpattern path: /home/accarter/public_html/ps/textpattern
Permanent link mode: id_title
Temporary directory path: /tmp
Site URL: psbooks.org
PHP version: 4.4.7
Register globals: 1
GD Image Library: bundled (2.0.28 compatible); supported formats: GIF, JPG, PNG.
Server Local Time: 2007-11-09 21:32:36
MySQL: 4.1.22-standard
Locale: en_GB.UTF-8
Server: Apache
Apache version: Apache
PHP Server API: apache
RFC 2616 headers:
Server OS: Linux 2.6.7
Active plugins: wet_link-0.7, rss_admin_db_manager-4.3
Pre-flight check:
————————————
Clean URL test failed.
————————————
.htaccess file contents:
————————————
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
————————————
Offline
#8 2007-11-09 22:19:42
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Switching URLS
…both urls publish from the same folder.
What does that mean, exactly?
You may need to tinker with the mod_rewrite rules a bit.
Offline
Re: Switching URLS
it means that the location of files for ps.accarter.com and psbooks.org is the same – a directory named ps in my public folder.
does that make sense?
Offline
#10 2007-11-09 22:33:53
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Switching URLS
What I am wondering is if you have some kind of redirecting in place that is confusing the url rewriting.
Offline
Re: Switching URLS
oh, no. no redirect and no mirrors – just two urls assigned to the same directory.
if there were a redirect i don’t think messy urls would work either?
Offline
Re: Switching URLS
okay there’s definitely something weird going on though – i just deleted ps.accarter.com to prove that it wasn’t a redirect. the site is still running, but none of my background images are showing up.
*I also just repaired my db to make sure, and still no-go.
Last edited by accarter (2007-11-10 18:50:26)
Offline