www.mysiete.com/folder/index.php to www.mysiete.com

New to mod_rewrite? This is a good place to start.

www.mysiete.com/folder/index.php to www.mysiete.com

Postby tirths » Fri Jul 17, 2009 5:38 am

Hello All,

I want www.mysite.com/folder/index.php to www.mysite.com

Can anyone let me know how to do that?
tirths
 
Posts: 2
Joined: Fri Jul 17, 2009 5:28 am

Postby richardk » Fri Jul 17, 2009 10:44 am

When the user visits example.com they should see example.com/folder/index.php? Try
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteRule ^$ /folder/index.php [QSA,L]
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby tirths » Fri Jul 17, 2009 1:23 pm

I have modified the /.htaccess wwwroot. It it working but the problem happens when I click some of the link. "The requested URL /index.php was not found on this server."

Kindly let me know what to do.
tirths
 
Posts: 2
Joined: Fri Jul 17, 2009 5:28 am

Postby richardk » Sat Jul 18, 2009 8:34 am

It it working but the problem happens when I click some of the link. "The requested URL /index.php was not found on this server."

What is the link to? What is supposed to happen when /index.php is requested? You need to be more specific.

Try replacing
Code: Select all
^$

with
Code: Select all
^(index\.php)?$
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 27 guests

cron