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 03-17-2011 10:21:11

dansmith490
Member
From: Barrow, Bury St Edmunds
Registered: 11-10-2008
Posts: 154
Website

HTACCESS Rewrite Issues

Hello, i have this HTACCESS file to rewrite my URLS.

i want to transform the url [domain]/ecom-catshow/[ref].html

to

[domain]/[ref].html

which i have done using this

RewriteRule ^(.*)\.html index.php?app=ecom&ns=catshow&ref=$1 [L,PT]

but when i try to apply this rule to other ns it doesnt work

RewriteRule ^(.*)\.html index.php?app=ecom&ns=catshow&ref=$1 [L,PT]
RewriteRule ^(.*)\.html index.php?app=ecom&ns=prodshow&ref=$1 [L,PT]
RewriteRule ^(.*)\.html index.php?app=ecom&ns=display&ref=$1 [L,PT]

any ideas where i ahve gone wrong.

Many Thanks

Offline

 

#2 03-17-2011 10:23:18

KryptoJim
Member
Registered: 07-08-2010
Posts: 455

Re: HTACCESS Rewrite Issues

there has to be some way for the URL's to differentiate the difference between namespaces.

Offline

 

#3 03-17-2011 10:24:43

dansmith490
Member
From: Barrow, Bury St Edmunds
Registered: 11-10-2008
Posts: 154
Website

Re: HTACCESS Rewrite Issues

Hmm do you have any suggestions??

Offline

 

#4 03-17-2011 15:06:57

vbsaltydog
Member
From: Florida
Registered: 05-02-2005
Posts: 947
Website

Re: HTACCESS Rewrite Issues

You will need for CCP to generate SEO friendly URLs AND the appropriate rewrite rules to decode the URLs

Check out my Extreme SEO XMOD which does what it appears you are trying to do.

https://forum.kryptronic.com/viewtopic.php?id=28655


Latest CCP 7 XMods Available:


Offline

 

Board footer