Jump to content

htaccess in subdomain


orhhun

Recommended Posts

i prefer to use htaccess file to make seo links in my site.

and last week, i started to make htaccess file for my subdomains.

i am using this code on my base directory of subdomain(subdomain.site.com/.htaccess):

Options +FollowSymLinks

RewriteEngine on

RewriteRule ^folder/(.*) page.php?who=$1

 

i want this:

when i write: subdomain.site.com/folder/kelly

it must be opened: subdomain.site.com/page.php?who=kelly

 

but its not working fine with this code

 

there is an interesting point:

when i write the adress like this:

site.com/subdomain/folder/kelly = ok, its working with the code above

but if i write this:

subdomain.site.com/folder/kelly = its not working with the same code

 

do u have any idea about it? what must i do?

(my subdomanis are not fake)

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.