Home Solve 500 error in Apache
Reply: 0

Solve 500 error in Apache

Andrik007
1#
Andrik007 Published in 2017-12-06 12:14:33Z

Hello, I want to all urls except that which starts with testing will opened from folder view. That which starts with testing will opened from folder testing with prefix testing_. For example, mysite.com/somepage will open mysite.com/view/somepage.php, mysite.com/testing/start will open mysite.com/testing/testing_start.php. And it must be not redirects.

I tried to use this code:

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/testing/(.*)$
RewriteRule (.*)$ view/$1 [L]

RewriteCond %{REQUEST_URI} ^/testing/(.*)$
RewriteRule (.*)$ testing/testing_$1 [L]

But I have error 500. Please, help me.

Thx.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.342608 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO