Mod-rewrite module and .htaccess

Status
Not open for further replies.

batui42

New Member
Messages
6
Reaction score
0
Points
0
Hi,

Could you please confirm if the mod-rewrite module on the Apache web server is enabled? I have created a second blog in Wordpress and there are problems with the permalinks. Basically the links to the new blog are not working and I am getting the 'Page not found' error. Wordpress codex suggested that enabling mod-rewrite might resolve the problem: http://codex.wordpress.org/Using_Permalinks#Using_.22Pretty.22_permalinks

Have followed the instructions for setting up the second blog to the letter. The network of and the associated links are availble, but the links to view the second blog and access its dashboard do not work. The main site is fine and is at: http://cpcg.x10.mx/, the second blog is at http://cpcg.x10.mx/met30pol.

Thanks in advance.
 

vv.bbcc19

Community Advocate
Community Support
Messages
1,524
Reaction score
92
Points
48
Servers should not cause any problem regarding the same.
 
Last edited:

stpvoice

Community Support Rep
Community Support
Messages
5,987
Reaction score
212
Points
63
Hello,

I'm not sure whether it makes any difference or not, but are you using the .htaccess file that is provided with Wordpress? Things may not work correctly without it.

Thanks.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Both manual installs?
Or use the cPanel installer?

What did you do to set up the second blog?
 

batui42

New Member
Messages
6
Reaction score
0
Points
0
Hi everyone,

Thanks for responding. In response to the various questions:

- the second blog was set up using the instructions at: http://codex.wordpress.org/Create_A_Network. I followed instructions to the letter and have reviewed the steps to check for errors.
- I am using the .htaccess file provided by Wordpress and have amended the file as required. The contents of the file can be found at the end of this message.
-Have reviewed the Wordpress Codex pages and many posts on various Forums. A recurring theme is: for permalinks to work mod-rewrite modules needs to be enabled, a server side issue. Please see: http://codex.wordpress.org/Using_Permalinks#Permalinks_without_mod_rewrite

Any help in resolving this would be much appreciated. Feel I am going around in circles

----------------------------------------------------------------------------------
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]

# END WordPress
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Where did you get that .htaccess file? If you got it from that Codex page, read the page again.

And if you were trying to use wildcard subdomains, they do not work on x10hosting.
 
Last edited:

batui42

New Member
Messages
6
Reaction score
0
Points
0
Hi.

The .htaccess file is the one generated by Wordpress, whilst the network was being set up. Any similarity to those on the Codex is a coincidence. The contents replaced all Wordpress rules as per instructions. The contents of the file are correct, the configuration steps and the code used to amend .htaccess are posted on the dashboard for reference purposes only.

I had problems amending the .htaccess file, the changes simply would not save. When the file was finally updated, I was able to view the new blog. However several hours after the install a '500 Internal Server Error' occurred. Since the service was restored I have never been able to access to the blog. The Wordpress dashboard has links to both the main site and new blog, however the links to new blog generate the error 'Page not found'.

I have gone over the install instructions on many occassions and can find no error. The only part of the instructions not yet implemented are those for 'Setting Up Wildcard Domains' at http://codex.wordpress.org/Create_A_Network#Step_2:_Setting_Wildcard_Subdomains.

If x10hosting does not use wildcard sub-domains, how do you accommodate multiple blogs for Wordpress users? Please provide a solution in non-technical terms, I am new to this. Thanks in advance.
 

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
Hello,

500 Internal Server Errors are caused by errors on your account that you can easily fix once you figure out what the error is. The common causes for 500 Internal Server Errors are below:
1. Permissions. Files MUST be 644 and folders MUST be 755.
2. Not specifying a RewriteBase when using RewriteRules in .htaccess.
3. Trying to use php_flag or php_value in .htaccess.

Please see our wiki page for more information.

Second, for wildcard subdomains, we do not allow them here and to answer your question about multiple blogs, the answer is simple: you can install Wordpress either in different subdomains (you're allowed to have 2 subdomains on your account), or you can install it in multiple paths (e.g. mysite.x10.mx/wp1, mysite.x10.mx/wp2, etc.).

My recommendation as per Wordpress is to only have one blog on your account, however, as Wordpress is a known CPU hog (although installing WP-SuperCache helps) and can very quickly cause High Resource Usage suspensions, even on just one install, if you have lots of plugins enabled. I shudder to think of how much CPU you'd be using if you had more than one Wordpress installation.
 
Status
Not open for further replies.
Top