Jump to content

Archived

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

jame_2d

1000 folder redirect to other url

Recommended Posts

when the user enter

www.atkherm.com/a
www.atkherm.com/b
www.atkherm.com/c
www.atkherm.com/d
www.atkherm.com/e

i want to redirect to

www.atkherm.com/a/a
www.atkherm.com/a/b
www.atkherm.com/a/c
www.atkherm.com/a/d
www.atkherm.com/a/e

but i have 100000 folder so how can i?

from www.atkhmer.com

Share this post


Link to post
Share on other sites
If you want diffrant folder names you will have to go into each folder and create a folder called what ever you want and icnore the other one and put the same things in

For example if you have  www.atkherm.com/a you must have a folder called a and you want www.atkherm.com/a/b then in that folder make one called b to access it as youve asked

Share this post


Link to post
Share on other sites
look into mod rewrite. Following should do the trick:
[code]RewriteEngine On
RewriteRule ^([a-zA-Z])$ /a/$1[/code]

What this will do is serve whats in a/folderLetterHERE. For example when do www.atkherm.com/e it'll server whats in atkherm.com/a/e

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.