Hi all, I need some advice from someone who knows the proper syntax of an .htaccess file.
My problem I guess started after installing a WordPress module that rewrites URLs to make them more friendly; when I first installed this module it worked ok. The blog is installed on a subfolder in my account. (mydomain.com/blog)
Later I wanted to add another link in the main menu to the main website (mydomain.com) so I figured out that creating a blank page and doing some redirection will work. I created the page and did some redirection using cPanel. When I went to check the website it was down, the whole thing even those static pages out of the blog were down. So I checked the .htaccess file and found out that by creating the redirection from cPanel did some damage to my custom .htaccess (I do not have a backup of the old one that was working before). I was able to correct the error and make the website available again but there is still one problem, FTP is failing and Dreaweaver says is because of file permissions. Not even editing using the file browser feature from cPanel works.
The more I try the more I realize I need to ask an expert. So here is my last resource. Below I'm pasting my current .htaccess file in the hope somebody can help:
The top part was added to make the blog work with the redirection plugin, the one at the bottom is the custom one which was changed. I will appreciate any input on this.PHP Code:<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
Options +Indexes
IndexIgnore *
php_value memory_limit 60M
php_value upload_max_filesize 50M
php_value post_max_size 60M
RewriteCond %{HTTP_HOST} ^mydomain.com$ [OR]
Thank you![]()


LinkBack URL
About LinkBacks
Reply With Quote
