Closed Thread
Results 1 to 8 of 8

Thread: Mod-rewrite module and .htaccess

  1. #1
    batui42 is offline x10Hosting Member batui42 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    6

    Question Mod-rewrite module and .htaccess

    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_Per....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.

  2. #2
    vv.bbcc19's Avatar
    vv.bbcc19 is offline Community Advocate vv.bbcc19 is just really nice
    Join Date
    Jun 2010
    Location
    India
    Posts
    1,505

    Re: Mod-rewrite module and .htaccess

    Servers should not cause any problem regarding the same.
    Last edited by vv.bbcc19; 06-20-2011 at 03:11 PM.
    BCV | Community Support Representative
    █ x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  3. #3
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: Mod-rewrite module and .htaccess

    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.


  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: Mod-rewrite module and .htaccess

    Both manual installs?
    Or use the cPanel installer?

    What did you do to set up the second blog?
    Nothing is always absolutely so.

  5. #5
    batui42 is offline x10Hosting Member batui42 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    6

    Question Re: Mod-rewrite module and .htaccess

    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_Per...ut_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

  6. #6
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: Mod-rewrite module and .htaccess

    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 by descalzo; 06-21-2011 at 11:26 AM.
    Nothing is always absolutely so.

  7. #7
    batui42 is offline x10Hosting Member batui42 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    6

    Re: Mod-rewrite module and .htaccess

    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_...ard_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.

  8. #8
    Skizzerz's Avatar
    Skizzerz is offline Contributors Skizzerz will become famous soon enough
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,153

    Re: Mod-rewrite module and .htaccess

    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.

Closed Thread

Similar Threads

  1. Rewrite module
    By surfmynetwork24 in forum Free Hosting
    Replies: 2
    Last Post: 04-02-2011, 01:17 PM
  2. is it to activate apache url rewrite module in a free account ?
    By zannino.francesco77 in forum Free Hosting
    Replies: 1
    Last Post: 03-31-2011, 07:21 AM
  3. Htaccess url rewrite
    By cartermcpyro in forum Free Hosting
    Replies: 0
    Last Post: 03-06-2010, 10:01 AM
  4. Need help with Htaccess mod-rewrite
    By Mumin in forum Programming Help
    Replies: 2
    Last Post: 06-23-2008, 04:02 PM
  5. ReWrite Module is not active
    By rkaraca in forum Free Hosting
    Replies: 8
    Last Post: 10-25-2006, 06:33 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers