This topic was marked solved by its starter, on January 31st, 2014, 09:05 PM
« [Notifications] not working
Pretty URLs and Paths

Aaron Smith

  • The mini menus on Thoughts... Damn Sexy!
  • Posts: 39
Pretty URLs and Paths
« on January 31st, 2014, 03:43 AM »
On a fresh install (both on my local system and a new VPS) the paths appear wrong.

I changed the Pretty URL settings to prettify Topic URLs and it tries to take me to:

http://127.0.0.1/wedge/general/1/welcome-to-wedge/

Instead of http://aridenkane.com/general/1/welcome-to-wedge/

I checked the Paths and HTML Templates and Assets paths are all wrong.

http://127.0.0.1/wedge/core/html
http://127.0.0.1/wedge/assets

Changing the paths does nothing to help. Did I miss a post or some special instructions?

Aaron

Harz-FEAR

  • Posts: 12
Re: Pretty URLs and Paths
« Reply #1, on January 31st, 2014, 01:45 PM »
I think you can go to the settings table in your database and change the path there.

Nao

  • Dadman with a boy
  • Posts: 16,063
Re: Pretty URLs and Paths
« Reply #2, on January 31st, 2014, 02:40 PM »
I'd like to know if it's the same for everyone though...

Re: Pretty URLs and Paths
« Reply #3, on January 31st, 2014, 03:00 PM »
Yes I'm getting the same thing I will dig deeper !
There are several setting there lol!

regards,
Maxx

txcas

  • Bug Zapper
  • Posts: 202

Re: Pretty URLs and Paths
« Reply #5, on January 31st, 2014, 03:16 PM »Last edited on January 31st, 2014, 03:25 PM by Maxx
yes get the same for topic and board when radio button is select under pretty urls, I think this may have something to do with the setting local host ( not sure ) I look more into this and report back! I think I've seen the local host listed in my server sett up in the admin section... I check, ??
I would guess these need to be set  by us?

regards,
Maxx

Nao

  • Dadman with a boy
  • Posts: 16,063
Re: Pretty URLs and Paths
« Reply #8, on January 31st, 2014, 03:46 PM »
I don't get where you get this address from.
The only place it shows up is in the 'dummy' Settings.php file for install purposes, but even this gets erased after installing.
Did you mess up with Settings.php at some point..?

Also, regarding PURL paths, I'm seeing nothing special on forums installed in the root, however I tried with one of my forums installed in a sub-folder, and it redirected me to the root one. So, I guess there's a bug in here somewhere... I'll have a look.

Nope... This was due to the fact that the forum's htaccess file wasn't correctly uploaded to its root. See, I have yet to move this one to the OriginalFiles.php code, so... No wonder it failed.

So, as a reminder:

If you're enabling pretty URLs on your forum, MAKE SURE that the .htaccess file is in your forum root!

Original location: /install/.htaccess
New location: /.htaccess
Re: Pretty URLs and Paths
« Reply #9, on January 31st, 2014, 03:48 PM »
Okay, now that I've fixed the htaccess problem, I'm getting these 127.0.0.1 errors -- like, right now. Something's broken around here.
I'm *guessing* that Wedge was silently fixing these errors after installing, and that's why I didn't catch them when I rewrote the installer.
Sorry about that. I'm on it right now.

Re: Pretty URLs and Paths
« Reply #10, on January 31st, 2014, 04:06 PM »Last edited on January 31st, 2014, 04:14 PM by Maxx
Say NP Bro..I broke my site, gonna get Git to see what the latest change are... I love this Stuff!

these things happen the Beta and this for alpha  testing in real life anyway right. No to mention some user errors! :)

regards,
Maxx

Aaron Smith

  • The mini menus on Thoughts... Damn Sexy!
  • Posts: 39
Re: Pretty URLs and Paths
« Reply #11, on January 31st, 2014, 05:09 PM »
Ok I just download and installed on my local machine and everything worked perfectly. Paths were back to normal and Pretty URLs seems to be working well again.

I'll do a fresh install on my vps to ensure it's working there as well.

Is the requirement for the .htaccess file to be moved from the install directory to the root documented anywhere?

Re: Pretty URLs and Paths
« Reply #12, on January 31st, 2014, 05:17 PM »
I did that and my site broke, maybe me. lol... gonna do a fresh install latest file rev at git!

took the .htaccess out stil ng!

regards,
Maxx

Nao

  • Dadman with a boy
  • Posts: 16,063
Re: Pretty URLs and Paths
« Reply #13, on January 31st, 2014, 05:20 PM »
@Aaron Smith, I'm not 100% sure it's documented. However, it was (is?) my intention to automate this as well, so... I don't now.
The problem is that this htaccess file doesn't only contain references to pretty URLs (it's only at the end.) It also contains a lot of helpers that force some Apache or PHP settings if the script can't force them by itself.
What I COULD do, though, is, in the Pretty URLs admin page, have some explanation on why you need the htaccess there (if not found), and perhaps also use the opportunity to give more pointers for ngnix and lighttpd compatibility, for instance.

@Maxx> Yeah, I know, but I don't like getting errors during installation, because... Well, it gives you a feeling that it's gonna be a hell of a ride, right from the start... :lol:

Whereas the only reason I rewrote the installer was to make life easier for everyone; in the process, I broke stuff.

So, please confirm that the new installer fixes stuff. If you don't want to reinstall (which I'd understand!), just update these variables to the correct ones:

{db_prefix}settings.theme_url
{db_prefix}settings.images_url
{db_prefix}settings.smileys_url
{db_prefix}settings.avatar_url
{db_prefix}media_settings.data_dir_url

I think that should be all. Basically, it's everything in install.sql that's reset to {$boardurl} (just search for that in the file, including brackets.)

Re: Pretty URLs and Paths
« Reply #14, on January 31st, 2014, 05:28 PM »
Nao I hear Ya. but this was only when playing with pretty urls, but still see you point well take it.

Then again, It should be expected from those testing for the first time. JMHO, but I know you want the best and that's way cool with me :)

regards,
Maxx

« [Notifications] not working