Jump to content

php and .htaccess rewrite


Recommended Posts

I am trying to rewrite this link to

 

http://sunerandgarcia.com/clients/oster2/index.php?action=portfolio-single&portfolio_id=IL_ipJBKRg4zlbefl3AU9zZvj6OjmQGErnI1iVDRWbU

 

to

 

http://sunerandgarcia.com/clients/oster2/port/IL_ipJBKRg4zlbefl3AU9zZvj6OjmQGErnI1iVDRWbU

 

I wrote the following rule 

RewriteRule    ^port/(.*)/?$   ./index.php?action=portfolio-single&portfolio_id=$1     [NC,L]   

But when i go to the link it does not load the images or stylesheets. All the images come with the directory port so that is why it is not loading. i tried putting the ./ before index, but it did not fix anything. 

 

 

Link to comment
Share on other sites

Fix the links for all your images and stylesheets and whatnot to use a leading slash. Without actually looking I imagine most of your files are in /clients/oster2 and your links have "folder/image.png" corresponding to the full path /clients/oster2/folder/image.png. Use the full path instead.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.