This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Mod_rewrite for .htacess for subdomains
#1
Mod_rewrite for .htacess for subdomains
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 !
Reply
Thanks given by:
#2
RE: 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>
Options Indexes FollowSymLinks
   AllowOverride All
   Require all granted
</Directory>

TGates?
Everyone makes mistakes, but to truly screw up it takes the root password!
Reply
Thanks given by:
#3
RE: Mod_rewrite for .htacess for subdomains
(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?

Code:
<Directory /var/sentora/hostdata/zadmin/public_html>
Options Indexes FollowSymLinks
   AllowOverride All
   Require all granted
</Directory>

TGates?
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
Reply
Thanks given by:
#4
RE: Mod_rewrite for .htacess for subdomains
(03-18-2017, 06:00 AM)nilavachowdhury Wrote: 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

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))
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by: worksmarter
#5
RE: Mod_rewrite for .htacess for subdomains
(03-18-2017, 04:16 PM)TGates Wrote: 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))
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
Reply
Thanks given by:
#6
RE: Mod_rewrite for .htacess for subdomains
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 Sad
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by: worksmarter
#7
RE: Mod_rewrite for .htacess for subdomains
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
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END 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!
Reply
Thanks given by:
#8
RE: Mod_rewrite for .htacess for subdomains
Did you set CNAME's in DNS for your subdomains? Confused
Everyone makes mistakes, but to truly screw up it takes the root password!
Reply
Thanks given by:
#9
RE: Mod_rewrite for .htacess for subdomains
Starting to look more like a DNS issue.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
subdomains live but not working..!! natimctat 2 7 ,519 01-27-2020, 06:47 PM
Last Post: Shabbirhasan
New subdomains are not seen through the internet pinchos 2 5 ,118 03-14-2019, 03:55 PM
Last Post: fearworks
[FIXED] Urgent Problems with Subdomains | Cinfu Host JimKnopf 7 15 ,645 06-12-2017, 09:20 AM
Last Post: JimKnopf

Forum Jump:


Users browsing this thread: 1 Guest(s)