URL Alias
Re: URL Alias
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?
As I can see you have 2 servers. Do you have the same problem on your local server?
Re: URL Alias
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?
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?
Re: URL Alias
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.
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.
Re: URL Alias
Let's get this working on local server first. Check the .htaccess as per previous post.
Re: URL Alias
If custom .htaccess is not accessible no url alias at all.
Re: URL Alias
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]
# 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]
Re: URL Alias
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
viewtopic.php?f=15&t=94&start=10#p161
Re: URL Alias
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 1126 times
Re: URL Alias
This is not the modified tpl file.