Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I moved my site to different server since then my all urls started showing up 404 error.

earlier my all urls were like this

but now all such urls are getting 404 error, so i disabled seo friendly url feature on site admin and now i can access same page on

i tired to create some regex for .htaccess to do purpose like RewriteRule ^([^/.]+)/?$ /index.php/$1 [L]

but its working fine one depth of "/", i mean its working for but not for

I am looking for REGEX help regardng it so that should gets rewritten to as well as gets rewritten to

looking forward for your kind help Thanks

share|improve this question

Perhaps this would do the trick?

RewriteCond  %{REQUEST_URI}  !^/index\.php
RewriteRule  ^/(.*)/?$       /index.php/$1  [L]
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.