Welcome Guest, Not a member yet? Register   Sign In
URL problem
#1

[eluser]sudinem[/eluser]
I've two sub-domain of my personal site developed in code igniter. The personal site works fine. I can view the front page of my blog and tools page. But, I want to view article of my blog, I got "Page not found" error.

I found that the url of blog is also handled by the .htaccess which is at the front of my file directory.

Tree diagram of my folder:

-system(personal site)
-blog(my blog on wordpress)
-tools(some applications develop in code igniter)
-.htaccess(to handle url of my personal site)

.htaccess file code:
Code:
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]


How to solve this????
#2

[eluser]dudeami0[/eluser]
Code:
#Redirects image views to the correct area
RewriteCond %(REQUEST_URI} !^/blog.* [NC]
RewriteCond %{HTTP_HOST} ^blog\.ursite\.com [NC]
RewriteRule ^(.*)?$ /blog/$1 [L]

That could possibly work, but I am terrible with htaccess :S Anyways it would be placed above the
Code:
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
or your current htaccess
#3

[eluser]sudinem[/eluser]
[quote author="dudeami0" date="1289831735"]
Code:
#Redirects image views to the correct area
RewriteCond %(REQUEST_URI} !^/blog.* [NC]
RewriteCond %{HTTP_HOST} ^blog\.ursite\.com [NC]
RewriteRule ^(.*)?$ /blog/$1 [L]

That could possibly work, but I am terrible with htaccess :S Anyways it would be placed above the
Code:
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
or your current htaccess[/quote]

Thanx for ur reply dudeami0 but it doesn't work.

By modify .htaccess as per your view, every traffic of the site is send to blog. By this, when I type the url of my personal site,the traffic is send to my blog.

But the good news is I've solved my problem by adding .htaccess file at every folder of my sub-domain. Cheers !!!! ;-)
#4

[eluser]sudinem[/eluser]
This problem is solved but I'm facing another problem i.e. email

please view this one:

http://ellislab.com/forums/viewthread/173466/




Theme © iAndrew 2016 - Forum software by © MyBB