Jump to content

Archived

This topic is now archived and is closed to further replies.

zyhit007

How to change .htaccess to rewrite the url? - Hard

Recommended Posts

I add a osc store at subdirectory, so when i open the store, the url is www.domain.com/paintings/index.php

 

I want to cancel the /paintings/ at the URL, is it possible?

lt will like www.domain.com/index.php

 

I am using Ultimate SEO URLs, so i wonder whether can i Rewrite the URL to do so?

 

For example, all codes on .htaccess for SEO URLs like this,

 

RewriteRule ^print_page_p(.*)$ index\.php?main_page=print_page&products_id=$1&%{QUERY_STRING} [L]

 

RewriteRule ^(.*)_p(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]

 

Is it possible to base on the code of SEO URLs to cancel the subdirectory?

 

Thanks

Share this post


Link to post
Share on other sites

just move your store from the sub directory to the root of your hosting...

 

then just edit these 2 files to set the new paths

 

includes/configure.php

 

and

 

admin/includes/configure.php

Share this post


Link to post
Share on other sites
just move your store from the sub directory to the root of your hosting...

 

then just edit these 2 files to set the new paths

 

includes/configure.php

 

and

 

admin/includes/configure.php

 

No, it is mainly because that i have added another store at the root directory, and i added another one at subdirectory.

The question is that, how can i cancel the subdirectory at the URL for the second store?

Share this post


Link to post
Share on other sites

×