skip to Main Content

Apache subdomain redirects to WordPress on www

I am running 2 websites on the same server: www.example.com example.com - WordPress sub.example.com - another site Requesting http://sub.example.com should of course respond with the index for that website. Instead it redirects to http://www.example.com unless I explicitly request http://sub.example.com/index.html, in…

VIEW QUESTION

.htaccess redirect urls with spaces – Apache

I am trying to redirect all invalid urls to my index.php file via my .htaccess file. Unfortunately I keep getting an Apache error. My .htaccess file RewriteEngine on RewriteCond %{REQUEST_URI} !.(?:css|js|jpe?g|gif|png)$ [NC] RewriteRule ^([a-zA-Z0-9-_/]*)$ index.php?p=$1 RewriteRule ^([A-Za-z0-9s]+)$ index.php?p=$1 [L]  This invalid url shoud redirect…

VIEW QUESTION
Back To Top
Search