Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 08-22-2012 07:26:24

ashley
Member
Registered: 08-16-2010
Posts: 41

.htaccess required for V8 SEO URLs

Title says it all, in the manual it has:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)-(.*)/(.*)\.html index.php?app=$1&ns=$2&ref=$3 [L,PT]

But as far as I can see this doesn't (and can't) work for the new version. Any ideas?

Offline

 

#2 08-22-2012 07:30:36

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19557
Website

Re: .htaccess required for V8 SEO URLs

The manual is wrong.  Read this:

http://wiki.kryptronic.com/CCP8SearchEngineOptimization

I'll have Jeff update the manual.  Thanks for the catch.


Nick Hendler

Offline

 

#3 01-24-2013 18:19:16

mixer25
Member
From: Ireland
Registered: 04-02-2006
Posts: 601

Re: .htaccess required for V8 SEO URLs

This worked for me on a sub directory!

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^directoryname/index.php - [L,PT]
RewriteRule ^directoryname$ index.php?COREseourl=/ [L,PT]
RewriteRule ^directoryname/$ directoryname/index.php?COREseourl=/ [L,PT]
RewriteRule ^directoryname/sitemap\.xml directoryname/utilities/sitemap.xml [L,PT]
RewriteRule ^directoryname/rss\.xml directoryname/utilities/rss.xml [L,PT]
RewriteCond %{REQUEST_URI} ^/directoryname/
RewriteCond %{REQUEST_URI} !\.(xml|css|js|gif|jpg|jpeg|png|pdf)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^directoryname/(.*) directoryname/index.php?COREseourl=/$1 [L,PT]

Offline

 

#4 01-24-2013 18:42:59

mixer25
Member
From: Ireland
Registered: 04-02-2006
Posts: 601

Re: .htaccess required for V8 SEO URLs

However when I redirected to a Sub Directory... you get this whenever you go directly to the domain page..

wwwmydomain.com//subdir/?COREseourl=/

It works but leaves this confusing line? any ideas?  I used the following re-write and it seems to pick up the last line of the above for the SEO rules???

RewriteRule ^$ /subdir

Offline

 

#5 01-25-2013 07:50:33

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19557
Website

Re: .htaccess required for V8 SEO URLs

Let me get this straight - you have the software installed in /subdir, but you want the site to treat it like it's in /.  Is that correct?


Nick Hendler

Offline

 

Board footer