Nikita Chopra
Nikita Chopra

Reputation: 119

.htaccess issues in wordpress subdomain URL

i am using below htaccess code to run sub-domain successfully,

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /questions/
    RewriteCond %{HTTP_HOST} ^([^.]+)\.admissiontimes\.com\.nz$
    RewriteRule ^(.*) http://admissiontimes.com/questions/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /questions/index.php [L]
    </IfModule>

Only homepage is working fine, all other links redirecting to homepage only,if i am clicking in Sign up, its took my to home page only, as base URL has been changed to http://www.domainname.com/questions/sign-up/ . Any help ?

Upvotes: 0

Views: 544

Answers (1)

Kaleem Sajid
Kaleem Sajid

Reputation: 230

I would reccomend you to use redirection plugin: http://wordpress.org/extend/plugins/redirection/ on your wordpress installation instead of manual .htaccess edit. It is simple and easy to use and you can also add Regx to your redirects.

Upvotes: 1

Related Questions