Welcome Guest, Not a member yet? Register   Sign In
How to remove "main" from current_url()?
#4

[eluser]Radiart[/eluser]
In URL bar in web browser I see this:

http://localhost/break/news/27501

But when I use current_url() I see this

http://localhost/break/main/news/27501

On all my website I don't see "main" but when I use current_url() suddenly I see "main"

I just want to get current link same like in URL bar.

Maybe I must change something in my .httacces file?

Code:
RewriteEngine on
RewriteCond $1 !^([a-zA-z0-9/])
RewriteRule ^(.*)$ index.php [L]
RewriteCond $1 !^(index.php|img|board|uploads|css|js|tinymce|system)
RewriteRule ^(.*)$ index.php/$1 [L]


Messages In This Thread
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 09:29 AM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 09:40 AM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 11:13 AM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 04:01 PM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 04:05 PM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 04:15 PM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 04:19 PM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 04:31 PM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 04:42 PM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 05:04 PM
How to remove "main" from current_url()? - by El Forum - 12-29-2010, 05:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB