Post by daze50 » Sun Aug 01, 2010 9:45 pm

SEO / URL's / .htaccess.txt....Help

I have read myself around in circles about getting the product names to display in the URL address bar.
I’m on a Linux platform and have messed around with the .htaccess.txt and the Use SEO URL's: in OC Admin.
Can anyone point me in the right direction as how to get product groups and names to appear?

This is my .htaccess.txt
Options +FollowSymlinks

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "\.tpl">
Order deny,allow
Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
ErrorDocument 404 /index.php?route=error/not_found

Thanks

New member

Posts

Joined
Mon Jul 12, 2010 2:08 am

Post by Moggin » Sun Aug 01, 2010 10:01 pm

Rename .htaccess.txt to .htaccess in order to activate it.

If you still have trouble, check here
-HTH

Active Member

Posts

Joined
Wed May 05, 2010 4:56 am

Post by daze50 » Sun Aug 01, 2010 10:17 pm

Hi and Thanks this is working better now, so I’m now staying in my site and the categories are showing in the URL bar, but no individual products are being display
Any ideas?

New member

Posts

Joined
Mon Jul 12, 2010 2:08 am

Post by Moggin » Sun Aug 01, 2010 10:34 pm

Hi daze50,
Do you mean - no products are displayed, and you get a 404?
Or that the products are displayed, but the URLs show the file path and not SEO URLs? ( You have to manually add keyword/s to each product, or use Auto SEO )
Or...something else? :)

Active Member

Posts

Joined
Wed May 05, 2010 4:56 am

Post by daze50 » Sun Aug 01, 2010 10:41 pm

Hi
Im getting "The page you requested cannot be found!" where the range of products should be on the web page.
The Catagory in the URL is showing, that bit is now fine and I see how that works.
I will try this extension you have sugested above.
Thank for now

New member

Posts

Joined
Mon Jul 12, 2010 2:08 am

Post by Moggin » Sun Aug 01, 2010 11:50 pm

OK. Is your shop in a subfolder, such as /store? If so, your .htaccess RewriteBase code must read (eg)

Code: Select all

RewriteBase /store/ 
I see you have the custom 404 code at the bottom of your .htaccess. If I understand Jay's posting correctly, this must also show /store in front of the /index.
If this is not the problem though, please post again.

Active Member

Posts

Joined
Wed May 05, 2010 4:56 am

Post by daze50 » Mon Aug 02, 2010 12:01 am

Hi
I should of been more clear soz, No its in my root folder.
Im not too sure what that bit of code means at the mo as I was doing some work on a 404.php file as google was telling me it could not find onw, but thats a diffrent thing.

New member

Posts

Joined
Mon Jul 12, 2010 2:08 am

Post by Moggin » Mon Aug 02, 2010 3:31 am

Ah, interesting - so you're still getting 'file not found'. Well, I am no expert, but .htaccess is the usual culprit.

The only thing I notice is that you've 2 lines of code in your .htaccess that are not in the default install.

For the custom 404 code, Jay advises that this should go at the top of the .htaccess file. If you move it to the top, do the links work? Otherwise, I would try commenting the line out for the moment, and see if it has any effect.

Active Member

Posts

Joined
Wed May 05, 2010 4:56 am

Post by daze50 » Mon Aug 02, 2010 6:28 pm

Hi
Thanks for the pointes, I have tried all the above and now I’m just getting page not found from the server my site is on which seem a bit backwards as at least I was in my site getting page not found...lol
Dub.dub.dub.conf***ingconfused.com

New member

Posts

Joined
Mon Jul 12, 2010 2:08 am

Post by Moggin » Mon Aug 02, 2010 11:07 pm

Yeah, sorry not to be more help, but this is usually pretty straightforward ;) Mod_rewrite enabled, turn on SEO URLs in back office, activate .htaccess file. So we're missing something somewhere.
For info, I didn't add anything at all to my .htaccess: just renamed it, and it worked.
I'm assuming your site comes back OK when you turn off SEO URLs.

Active Member

Posts

Joined
Wed May 05, 2010 4:56 am

Post by daze50 » Sun Aug 08, 2010 12:39 am

Hi
Soz I have been away from this for a bit, yes if i turn it off the site works fine.
Anyway thats for the pointes/ideas
cheers

New member

Posts

Joined
Mon Jul 12, 2010 2:08 am

Post by SteveSherry » Mon Aug 16, 2010 7:39 am

Check that the seo url is not the same for the product and the category.
That would stop products appearing.

If this is not it, its probably best to give a link as I can better understand the problem when I can see it.

My Website ¦ Summer Madness Special Offer ¦


Active Member

Posts

Joined
Thu Apr 08, 2010 7:47 am
Location - Wirral, UK
Who is online

Users browsing this forum: No registered users and 15 guests