Do pretty permalinks work on the parent site?
Thread Starter
hibha
(@hibha)
no the permalinks are not working
There we go. You don’t have mod_rewrite setup (so your .htaccess isn’t being read).
Thread Starter
hibha
(@hibha)
how do i do tht
am very new to this
Thread Starter
hibha
(@hibha)
my .htaccess
RewriteEngine On
<IfModule mod_rewrite.c>
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
RewriteBase /wordpress/
RewriteRule ^index\.php$ – [L]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
Thread Starter
hibha
(@hibha)
also not able to open samplepage on localhost/wordpress
widout pretty permalinks
First, when the directions say replace, what they mean is replace.
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
If that isn’t work, and you’re using MAMP or LAMP or something similar, you need to figure out how to turn on mod_rewrite locally.
Thread Starter
hibha
(@hibha)
i had put the original text thn read some whr b4 coming here had added those lines
have removed those lines and pasted the original one
still i get only main page on my master site, even normal permalink are giving error for sample page
If that isn’t work, and you’re using MAMP or LAMP or something similar, you need to figure out how to turn on mod_rewrite locally.
You don’t have mod_rewrite on. This means your .htaccess, which is what magically makes pretty permalinks work, isn’t working at all, and your site won’t work.
As Ipstenu has stated twice already – at this point it matters little what is in the htaccess file as your server is not even reading it.
Set up mod_rewrite in Apache.
Thread Starter
hibha
(@hibha)
Hey
I figured out a way to enable mod rewrite on my lamp server
and viola all working
thanks for your support
Thread Starter
hibha
(@hibha)
i forgot to mark this as solved