Hi! I recently followed a old thread in this forum to enable mod_rewrite for use in .htacess . However it works only for the root domain and not for my subdomains and other domains! How do I enable it ? Or else I am getting http 500 error for WordPress on my subdomains !
Mod_rewrite for .htacess for subdomains
|
(03-18-2017, 03:55 AM)nilavachowdhury Wrote: Hi! I recently followed a old thread in this forum to enable mod_rewrite for use in .htacess . However it works only for the root domain and not for my subdomains and other domains! How do I enable it ? Or else I am getting http 500 error for WordPress on my subdomains ! It would help if you told us what you did - from that old post. Did you add something like this to your Global Vhost Entry? Code: <Directory /var/sentora/hostdata/zadmin/public_html> TGates?
Everyone makes mistakes, but to truly screw up it takes the root password!
(03-18-2017, 05:08 AM)worksmarter Wrote: It would help if you told us what you did - from that old post. Did you add something like this to your Global Vhost Entry?Yes I added that ! But to global host file or not that I don't know ! I added it to /etc/apache2/sites-available/000-default.conf As much as I remember In the old thread it was mentioned /etc/apache2/sites-available/default But there seemed to be not file as that So I listed my directory ... Found 000-default And added those to that ! Sent from my Redmi Note 3 using Tapatalk (03-18-2017, 06:00 AM)nilavachowdhury Wrote: Yes I added that ! But to global host file or not that I don't know ! The above files are not used. Sentora has it's own custom configs. mod_rewrite should be enabled for all domains. Post a working .htaccess and a failing .htaccess (If you are copy-pasting, remember to use [ code ]paste-here[ /code ] (remove spaces)) Thanks given by: worksmarter
(03-18-2017, 04:16 PM)TGates Wrote: The above files are not used. Sentora has it's own custom configs.All the .Htacess files are same ! It's the same as the default WordPress .Htacess file ! I have not modified it anyhow ! Sent from my Redmi Note 3 using Tapatalk
This seems more of a Wordpress issue than Sentora. If Wordpress works on regular domains but not sub domains, then the .htaccess need to be edited to work with sub domains. I do not use Wordpress so I am not familiar with it's configs or anything
Thanks given by: worksmarter
I am running some WordPress sites. There is no reason I can think that you would need to modify your .htaccess from what is created/copied at install.
Here is the standard .htaccess: Code: # BEGIN WordPress I don't readily see why this would not work on a subdomain just the same. Am I missing something here TGates ? - Sorry I am not awesome with regex expressions and the like... Perhaps your issues are somewhere else. DNS would come to mind...
Everyone makes mistakes, but to truly screw up it takes the root password!
Did you set CNAME's in DNS for your subdomains?
Everyone makes mistakes, but to truly screw up it takes the root password!
|
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
New subdomains are not seen through the internet | pinchos | 2 | 5 ,870 |
03-14-2019, 03:55 PM Last Post: fearworks |
|
[FIXED] Urgent Problems with Subdomains | Cinfu Host | JimKnopf | 7 | 17 ,623 |
06-12-2017, 09:20 AM Last Post: JimKnopf |
|
Problem Subdomains , Add , Create , DNS | franmm25 | 1 | 5 ,781 |
06-12-2017, 08:16 AM Last Post: TGates |
Users browsing this thread: 2 Guest(s)