reescrever url na barra de endereço sem alterar o URL real

0
Im facing SEO problem with my website cause my urls are with index.php
for an example when i try to upload a file the url is like this

1 - link

and when i try to upload an image the url is this on the address bar

2 - link

is it possible to fake url in the address bar the real address should be hidden
i need the urls as follow

por exemplo, 1 - link
   por exemplo, 2 - link

There is also another problem that http://niresh12495.com/index.php is not redirected to 
http://niresh12495.com/   
i tried to hide index.php but in some case there is a trailing question mark after url

Once i fixed the url completely but the problem was when i tried to post a topic
the url was redirected to niresh12495.com/index.php? then to the home page niresh12495.com
it looks like arguments are passing through index.php? I'm not completely assure of the   
problem
    
por The KingMaker 08.02.2014 / 17:00

1 resposta

0

Experimente este código:

# remove index.php
RewriteCond %{THE_REQUEST} /index\.php [NC]
RewriteRule ^(.*?)index\.php$ /$1 [L,R=302,NC,NE]

RewriteCond %{THE_REQUEST} \s/+search\.php\?app=([^\s&]+) [NC]
RewriteRule ^ /app/%1? [R=302,L]

RewriteRule ^app/([^/.]+)/?$ /index.php?app=$1 [L,QSA,NC]
    
por 09.02.2014 / 12:45