URL Alias

General Support for technical Issues relating to AlegroCart
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 7:23 am

What was the error number you got? 404 or 500?
As I can see you have 2 servers. Do you have the same problem on your local server?

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

Re: URL Alias

Post by Beachgirl » Sun Oct 31, 2010 7:52 am

I'm not receiving any error numbers, just the returned page from alegrocart saying "The page you requested cannot be found."

I tried to enable url alias on my local server and received the browser error "Oops! This link appears to be broken." on all pages. I just assumed that the url alias would only work on the live site?

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:53 am

On the local site, it works the same as live.
On local, what server are you using. If Xampp, did you adjust the .htacess to reflect correct path in rewrite base.
for example this is default in .htacess
RewriteBase /
If your test site is in \htdocs\cart\
RewriteBase / cart/

Could you in admin->url alias go the the list page that shows the catogory/subcategories that don't work and post a screen print showing the URL Query and the ALias so we can see what is happening there.

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

Re: URL Alias

Post by Beachgirl » Sun Oct 31, 2010 7:59 am

Yep
Attachments
Untitled-3.jpg
Untitled-3.jpg (65.39 KiB) Viewed 14669 times

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 8:04 am

Let's get this working on local server first. Check the .htaccess as per previous post.

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 8:24 am

If custom .htaccess is not accessible no url alias at all.

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

Re: URL Alias

Post by Beachgirl » Sun Oct 31, 2010 8:37 am

I'm using BitNami WAMPStack for my local server. I changed the .htaccess file and only the .index page works, all others are broken. Heres how my .htaccess file looks (I left my folder named upload):

# Uncomment this to ensure that register_globals is Off
#php_flag register_globals Off

# URL Alias - see install.txt
# Prevent access to .tpl
<Files ~ "\.tpl$">
Order allow,deny
Deny from all
</Files>

Options +FollowSymlinks

<IfModule mod_rewrite.c>
RewriteEngine On

# Uncomment this if your URL is not directly related to the physical file paths.
# RewriteBase /store/ if store is directory cart is in, eg: www/store/cart
RewriteBase / upload/

#AlegroCart REWRITES START
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php/$1 [L,QSA]
#AlegroCart REWRITES END

</IfModule>
#Try if you have problems with url alias
#RewriteRule ^(.*) index.php [L,QSA]

# Focus on one domain - Uncomment to use
#RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
#RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]

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 8:59 am

If your index page works, read this topic for a start and make sure the index is specified in config.
viewtopic.php?f=15&t=94&start=10#p161

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

Re: URL Alias

Post by Beachgirl » Sun Oct 31, 2010 9:10 am

I did modify the category.tpl but am pretty sure I didn't modify the php file because I dont understand php (I know, not a good thing)
Attachments
Category Files.zip
(5.09 KiB) Downloaded 1127 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 9:19 am

This is not the modified tpl file.

Post Reply