URL Alias

General Support for technical Issues relating to AlegroCart
User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: URL Alias

Post by Brent » Sun Oct 31, 2010 2:58 pm

I think we have maybe found your problem.
You are outside the \htdocs folder.
It's like loading you web file to the website root instead of the document root.
You should have a \htdos folder. put your test site in there and install again.

C:\Program Files\BitNami WAMP Stack\apache2\htdocs\upload

Beachgirl
Posts: 51
Joined: Wed Oct 20, 2010 4:57 pm
Location: USA

Re: URL Alias

Post by Beachgirl » Sun Oct 31, 2010 3:11 pm

No ... Its in the htdocs .. dont know why I didn't type that in. I promise its there. Here's a screen shot of my server info ... I got this here: admin/configuration/server info (there was no "system")
Attachments
Untitled-4.jpg
Untitled-4.jpg (126.72 KiB) Viewed 10104 times

User avatar
leo
admin
Posts: 4320
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Re: URL Alias

Post by leo » Sun Oct 31, 2010 3:38 pm

mod_rewrite is loaded.
Check if custom .htaccess works:
Create a .htaccess file and place it in your webroot with the following content:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^fake\.html$ /index.html [L]

Now make sure you have an index.html file in your webroot.
Visit your website using fake.html and it will take you to index.html

Beachgirl
Posts: 51
Joined: Wed Oct 20, 2010 4:57 pm
Location: USA

Re: URL Alias

Post by Beachgirl » Sun Oct 31, 2010 4:06 pm

Ok, I did this on my live site and it worked. Just to be clear ... I made up an index.html file and uploaded it to the webroot, is there supposed to be one there already???

User avatar
leo
admin
Posts: 4320
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Re: URL Alias

Post by leo » Sun Oct 31, 2010 4:25 pm

You did everything right. So, it is not server side problem.

Back to your test cart. Will you change in your .htaccess file to RewriteBase /cart/ from / cart/?

Beachgirl
Posts: 51
Joined: Wed Oct 20, 2010 4:57 pm
Location: USA

Re: URL Alias

Post by Beachgirl » Sun Oct 31, 2010 4:36 pm

Ok, it now looks like: RewriteBase /cart/

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: URL Alias

Post by Brent » Sun Oct 31, 2010 7:14 pm

Yes, and with url alias turned on, you still get the 404 error, page not found.
If you turn off url alias, everything should work fine,even with the RewriteBase /cart/.
And yes, you do need that for alias to work because your site is not in the document root, but a subfolder.

I have no idea what text editor you have, but I would suggest getting notepad++
You need to got to apache/conf and open httpd.conf
got to line 225 AllowOverride None
Change it to AllowOverride All
save the file, making sure it is saved as httpd.conf, not the default .txt
Stop and restart your server and you should be fine.
That will make your .htaccess usable.
I have download and installed your webserver and did a fresh install using the upload folder as you did.
I had all the same problems because the .htaccess was being ignored.
Poor way to send out a ready to use server package for development.

Beachgirl
Posts: 51
Joined: Wed Oct 20, 2010 4:57 pm
Location: USA

Re: URL Alias

Post by Beachgirl » Sun Oct 31, 2010 11:43 pm

Arrrrggg .... I had such high hopes. I followed your instructions exactly and did this for the local and test, it didn't fix the problem. I am using notepad++

I'll have to continue this tomorrow. Thanks so much Brent and Leo, I'm so very grateful for your all your help today :)

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: URL Alias

Post by Brent » Mon Nov 01, 2010 4:32 am

Did you try Leo's test on your local site as well. And no, you don't need the index.html. It was just for testing. You have to delete it after the test.

? version WAMPStack 1.2-3
The only other change I made in httpd.conf was in line 239, I changed the order of index files to server, which shouldn't make a difference, but I tried anyway.

Code: Select all

<IfModule dir_module>
    DirectoryIndex index.php index.html
</IfModule>
You could try that. I don't think it will make any difference.

Make sure AllowOverride is set to All

Code: Select all

<Directory />
    Options FollowSymLinks
    AllowOverride All
    Order deny,allow
    Deny from all
</Directory>

<Directory "C:/ ...  /htdocs
AllowOverride All
I also notice in PHPMyAdmin a warning at the bottom of the page.
Your PHP MySQL library version 5.0.51a differs from your MySQL server version 5.1.50. This may cause unpredictable behavior.
If this does not correct your problem, I would suggest a different test server.
This is the best one I have used with out building your own.
http://www.apachefriends.org/en/xampp-windows.html

Beachgirl
Posts: 51
Joined: Wed Oct 20, 2010 4:57 pm
Location: USA

Re: URL Alias

Post by Beachgirl » Mon Nov 01, 2010 3:56 pm

I tried your other suggestions but its still not working.
I downloaded the xampp server but when I go to open the http://localhost/ its opening bitnami ... blah. I made sure to stop the bitnami server.
I'm going to have my Brother see if he can help me sort this all out tomorrow.
I'll keep you posted.

Oh, btw .. I LOVE the way your new e-cart looks. So modern and up to date. Is there a download for the category menu in black on the left column?

Have a great day :)

Post Reply