Loveleen Kaur
Loveleen Kaur

Reputation: 993

permalinks in wordpress

I just moved my wordpress blog from one host to another but permalink is giving trouble. Other than the homepage, other pages give a page not found error.

I edited the htaccess as per instructions

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /projects/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wdmgroup/index.php [L]
</IfModule>

I even tried deleting the htaccess and rewriting but to no avail.

P.S : htaccess and Mod Rewriteare both enabled in Apache's conf

Regards, Loveleen

Upvotes: 0

Views: 232

Answers (4)

Cninroh
Cninroh

Reputation: 1796

Check your apache configuration and verify that for the directory in which you store your Wordpress installation you have following settings enabled (probably you will have more configuration options for the specific directory, but these are the minimum required for Wordpress fancy permalinks):

<Directory var/www/>
FollowSymLinks
AllowOverride All
</Directory>

Upvotes: 0

Loveleen Kaur
Loveleen Kaur

Reputation: 993

I found the solution. Everything else was tried but still it didnt work. Later i realized that I had to make a Virtual DIrectory in apache for folder wdmgroup which I had directly placed inside the www folder.

Upvotes: 0

Ruslan Polutsygan
Ruslan Polutsygan

Reputation: 4461

According to your .htaccess file, your site should be in the http://www.site.com/projects/wdmgroup/ - folder. Is it so? Also, have you update needed entries in the wp_options table in your database?

Upvotes: 1

markratledge
markratledge

Reputation: 17561

Delete .htaccess and reset permalinks from within Admin at Dashboard>>Settings>>Permalinks to be sure permalinks are set in the database as well as in the .htaccess file that WP generates.

Be sure WP is in /wdmgroup/ , because that's where it should be located, according to your .htaccess.

If you're moving WP to root, see Moving WordPress « WordPress Codex.

Upvotes: 3

Related Questions